0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 15:51:37 -05:00

🐛 Fix problem with empty paths

This commit is contained in:
alonso.torres 2023-01-18 14:34:16 +01:00
parent 1f9c89fb32
commit 9fd6c65d93

View file

@ -279,11 +279,14 @@
state)))
ptk/WatchEvent
(watch [_ _ _]
(watch [_ state _]
(let [content (get-in state [:workspace-drawing :object :content] [])]
(if (seq content)
(rx/of (setup-frame-path)
(dwdc/handle-finish-drawing)
(dwe/start-edition-mode shape-id)
(change-edit-mode :draw)))))
(change-edit-mode :draw))
(rx/of (dwdc/handle-finish-drawing)))))))
(defn handle-new-shape
"Creates a new path shape"