🐛 [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 _] (watch [_ state _]
(let [selected (wsh/lookup-selected state) (let [selected (wsh/lookup-selected state)
hover-guides (get-in state [:workspace-guides :hover]) 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 (cond
(and (= options-mode :prototype) (d/not-empty? selected)) (and (= options-mode :prototype) (d/not-empty? selected))
(rx/of (dwi/remove-interactions selected)) (rx/of (dwi/remove-interactions selected))