0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

🐛 [Prototype] Prototype mode should not allow edits

This commit is contained in:
Alejandro Alonso 2022-02-25 12:41:19 +01:00
parent d2590c7651
commit 2fc4c30bed

View file

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