0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 17:00:36 -05:00

🐛 Backport some fixes from staging

This commit is contained in:
Andrey Antukh 2022-02-25 13:18:51 +01:00
parent 45f9d5bb81
commit 4ee2ca2a33

View file

@ -726,9 +726,9 @@
(ptk/reify ::delete-selected
ptk/WatchEvent
(watch [_ state _]
(let [selected (wsh/lookup-selected state)
(let [selected (wsh/lookup-selected state)
hover-guides (get-in state [:workspace-guides :hover])
options-mode (get-in state [:workspace-local :options-mode])]
options-mode (get-in state [:workspace-global :options-mode])]
(cond
(and (= options-mode :prototype) (d/not-empty? selected))
(rx/of (dwi/remove-interactions selected))