mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 10:12:15 +02:00
🐛 Fix issue when typography name is empty.
This commit is contained in:
parent
9ee5a3159c
commit
e44ea47497
3 changed files with 15 additions and 6 deletions
|
@ -242,11 +242,11 @@
|
|||
(watch [it state _]
|
||||
(let [[path name] (cp/parse-path-name (:name typography))
|
||||
typography (assoc typography :path path :name name)
|
||||
prev (get-in state [:workspace-data :typographies (:id typography)])
|
||||
rchg {:type :mod-typography
|
||||
:typography typography}
|
||||
uchg {:type :mod-typography
|
||||
:typography prev}]
|
||||
prev (get-in state [:workspace-data :typographies (:id typography)])
|
||||
rchg {:type :mod-typography
|
||||
:typography typography}
|
||||
uchg {:type :mod-typography
|
||||
:typography prev}]
|
||||
(rx/of (dwu/start-undo-transaction)
|
||||
(dch/commit-changes {:redo-changes [rchg]
|
||||
:undo-changes [uchg]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue