mirror of
https://github.com/penpot/penpot.git
synced 2025-05-13 06:26:38 +02:00
🐛 Fix problem with empty path editing
This commit is contained in:
parent
55d2768807
commit
71524fe649
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@
|
||||||
id (get-in state [:workspace-local :edition])
|
id (get-in state [:workspace-local :edition])
|
||||||
old-content (get-in state [:workspace-local :edit-path id :old-content])
|
old-content (get-in state [:workspace-local :edit-path id :old-content])
|
||||||
shape (get-in state (st/get-path state))]
|
shape (get-in state (st/get-path state))]
|
||||||
(if (and (some? old-content) (some? shape))
|
(if (and (some? old-content) (some? (:id shape)))
|
||||||
(let [[rch uch] (generate-path-changes objects page-id shape old-content (:content shape))]
|
(let [[rch uch] (generate-path-changes objects page-id shape old-content (:content shape))]
|
||||||
(rx/of (dch/commit-changes {:redo-changes rch
|
(rx/of (dch/commit-changes {:redo-changes rch
|
||||||
:undo-changes uch
|
:undo-changes uch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue