From 72f23951421a5e11f29f13eeb9a41b17c942a171 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 18 Nov 2024 12:33:33 +0100 Subject: [PATCH] :bug: Fix problem with texts crashing --- .../app/main/ui/workspace/shapes/text/viewport_texts_html.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/shapes/text/viewport_texts_html.cljs b/frontend/src/app/main/ui/workspace/shapes/text/viewport_texts_html.cljs index d6b901907..4e84088ce 100644 --- a/frontend/src/app/main/ui/workspace/shapes/text/viewport_texts_html.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/text/viewport_texts_html.cljs @@ -15,6 +15,7 @@ [app.common.math :as mth] [app.common.text :as txt] [app.common.types.modifiers :as ctm] + [app.common.uuid :as uuid] [app.main.data.workspace.modifiers :as mdwm] [app.main.data.workspace.texts :as dwt] [app.main.fonts :as fonts] @@ -184,7 +185,7 @@ (mf/use-fn (fn [shape node] ;; Unique to indentify the pending state - (let [uid (js/Symbol)] + (let [uid (uuid/next)] (swap! pending-update* assoc uid (:id shape)) (p/then (update-text-shape shape node)