mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 07:41:43 -05:00
🐛 Fix problem with empty paths
This commit is contained in:
parent
1f9c89fb32
commit
9fd6c65d93
1 changed files with 8 additions and 5 deletions
|
@ -279,11 +279,14 @@
|
|||
state)))
|
||||
|
||||
ptk/WatchEvent
|
||||
(watch [_ _ _]
|
||||
(rx/of (setup-frame-path)
|
||||
(dwdc/handle-finish-drawing)
|
||||
(dwe/start-edition-mode shape-id)
|
||||
(change-edit-mode :draw)))))
|
||||
(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))
|
||||
(rx/of (dwdc/handle-finish-drawing)))))))
|
||||
|
||||
(defn handle-new-shape
|
||||
"Creates a new path shape"
|
||||
|
|
Loading…
Add table
Reference in a new issue