From e976714964a7b0dbe784c34dca847d6a7f5e8b94 Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Fri, 1 Aug 2025 13:03:43 +0200 Subject: [PATCH] :bug: Fix error on inspect tab with texts (#7032) --- frontend/src/app/main/ui/inspect/attributes/text.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/inspect/attributes/text.cljs b/frontend/src/app/main/ui/inspect/attributes/text.cljs index 9c953cb269..b843f1bd08 100644 --- a/frontend/src/app/main/ui/inspect/attributes/text.cljs +++ b/frontend/src/app/main/ui/inspect/attributes/text.cljs @@ -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* %)}]))