mirror of
https://github.com/penpot/penpot.git
synced 2026-02-26 22:34:11 +00:00
🐛 Don't emit update-shape when no page-id.
This commit is contained in:
@@ -77,7 +77,8 @@
|
||||
(dissoc (:content shape) :children))]
|
||||
(rx/merge
|
||||
(rx/of (update-editor-state shape nil))
|
||||
(when (not= content (:content shape))
|
||||
(when (and (not= content (:content shape))
|
||||
(some? (:current-page-id state)))
|
||||
(rx/of (dwc/update-shapes [id] #(assoc % :content content))))))
|
||||
(rx/of (dws/deselect-shape id)
|
||||
(dwc/delete-shapes [id])))))))
|
||||
|
||||
Reference in New Issue
Block a user