🐛 Fix error on inspect tab with texts (#7032)

This commit is contained in:
Eva Marco 2025-08-01 13:03:43 +02:00 committed by GitHub
parent ce0d6ffda2
commit e976714964
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,8 +58,8 @@
file-library-workspace (get (mf/deref refs/files) (:typography-ref-file style))
typography-external-lib (get-in file-library-workspace [:data :typographies (:typography-ref-id style)])
color-format! (mf/use-state :hex)
color-format* (deref color-format!)
color-format* (mf/use-state :hex)
color-format (deref color-format*)
typography (or (get (or typography-library file-typographies-viewer file-typographies-workspace) (:typography-ref-id style)) typography-external-lib)]
@ -67,7 +67,7 @@
(when (:fills style)
(for [[idx fill] (map-indexed vector (:fills style))]
[:& color-row {:key idx
:format @color-format*
:format color-format
:color (types.fills/fill->color fill)
:copy-data (copy-style-data fill :fill-color :fill-color-gradient)
:on-change-format #(reset! color-format* %)}]))