0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 17:00:36 -05:00

🐛 Fix ungroup typographies on edit

This commit is contained in:
Eva 2022-05-18 17:03:51 +02:00 committed by Alonso Torres
parent 2b1e126ff8
commit b5e696c6b4

View file

@ -222,6 +222,9 @@
(watch [it state _] (watch [it state _]
(let [data (get state :workspace-data) (let [data (get state :workspace-data)
[path name] (cph/parse-path-name (:name typography)) [path name] (cph/parse-path-name (:name typography))
path (if (and (:path typography) (= "" path))
(:path typography)
path)
typography (assoc typography :path path :name name) typography (assoc typography :path path :name name)
changes (-> (pcb/empty-changes it) changes (-> (pcb/empty-changes it)
(pcb/with-library-data data) (pcb/with-library-data data)