🐛 Fix hidden shapes inside hidden group

This commit is contained in:
Eva 2023-01-20 11:15:14 +01:00
parent 28114b166c
commit 2a30c23334
2 changed files with 6 additions and 1 deletions

View file

@ -408,7 +408,11 @@
(boolean? blocked) (assoc :blocked blocked)
(boolean? hidden) (assoc :hidden hidden)))
objects (wsh/lookup-page-objects state)
ids (into ids (->> ids (mapcat #(cph/get-children-ids objects %))))]
;; We have change only the hidden behaviour, to hide only the
;; selected shape, block behaviour remains the same.
ids (if (boolean? blocked)
(into ids (->> ids (mapcat #(cph/get-children-ids objects %))))
ids)]
(rx/of (dch/update-shapes ids update-fn))))))
(defn toggle-visibility-selected