diff --git a/frontend/src/app/main/data/colors.cljs b/frontend/src/app/main/data/colors.cljs index efc6716bf7..049452a001 100644 --- a/frontend/src/app/main/data/colors.cljs +++ b/frontend/src/app/main/data/colors.cljs @@ -111,7 +111,8 @@ (watch [_ state s] (let [pid (:current-page-id state) objects (get-in state [:workspace-data :pages-index pid :objects]) - children (mapcat #(cph/get-children % objects) ids) + not-frame (fn [shape-id] (not= (get-in objects [shape-id :type]) :frame)) + children (->> ids (filter not-frame) (mapcat #(cph/get-children % objects))) ids (into ids children) is-text? #(= :text (:type (get objects %))) @@ -138,7 +139,8 @@ ptk/WatchEvent (watch [_ state s] (let [objects (get-in state [:workspace-data :pages-index (:current-page-id state) :objects]) - children (mapcat #(cph/get-children % objects) ids) + not-frame (fn [shape-id] (not= (get-in objects [shape-id :type]) :frame)) + children (->> ids (filter not-frame) (mapcat #(cph/get-children % objects))) ids (into ids children) update-fn (fn [s]