mirror of
https://github.com/penpot/penpot.git
synced 2026-05-04 23:59:12 +00:00
The v2 editor style-reading functions (get-styles-from-style-declaration and get-attrs-from-styles) decoded empty CSS variable values to nil for typography-ref-file and typography-ref-id, then unconditionally included them in the result map. These nils propagated into shape content and sidebar values, ultimately leaking into new text shapes created after detaching a typography. Skip entries whose decoded/resolved value is nil so the keys are simply absent instead of present-with-nil.