mirror of
https://github.com/penpot/penpot.git
synced 2025-07-20 19:07:12 +02:00
🐛 Fix problem with typographies
This commit is contained in:
parent
235d3dbf3d
commit
eb07350cac
1 changed files with 3 additions and 5 deletions
|
@ -260,11 +260,9 @@
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(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 new-name)
|
||||||
path (if (and (:path typography) (= "" path))
|
object (get-in data [:typographies id])
|
||||||
(:path typography)
|
new-object (assoc object :path path :name name)]
|
||||||
path)
|
|
||||||
typography (assoc typography :path path :name name)]
|
|
||||||
(do-update-tipography it state new-object file-id)))))
|
(do-update-tipography it state new-object file-id)))))
|
||||||
|
|
||||||
(defn delete-typography
|
(defn delete-typography
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue