Skip to main content
Alex_FG
New Participant
February 3, 2023
Question

How to know which style was deleted?

  • February 3, 2023
  • 1 reply
  • 353 views

If StyleDeleteChange.style is always null, how can I get the name of the style that was deleted so I can fully respond to the event? Or do I have to keep a duplicate list of all the current styles and check against it on STYLE_DELETE to see which is missing?

This topic has been closed for replies.

1 reply

tank666
February 3, 2023

Unfortunately, only to compare. documentChange returns a style id by which you can compare with the list of styles you saved earlier.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank