0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 16:00:19 -05:00

Merge pull request #5326 from penpot/alotor-fix-problem-texts

🐛 Fix problem with texts crashing
This commit is contained in:
Alejandro 2024-11-18 12:59:40 +01:00 committed by GitHub
commit c4f076910b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)