From e4cc7d72da6ecdfd924d5e5008cc6b43e06d4f2e Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 30 Mar 2026 11:03:34 +0200 Subject: [PATCH] :bug: Fix incorrect attrs references on generate-sync-shape (#8776) For :component --- common/src/app/common/logic/libraries.cljc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/app/common/logic/libraries.cljc b/common/src/app/common/logic/libraries.cljc index ee4a3a8d5b..a162561d1a 100644 --- a/common/src/app/common/logic/libraries.cljc +++ b/common/src/app/common/logic/libraries.cljc @@ -603,7 +603,7 @@ (defmethod generate-sync-shape :components [_ changes _library-id container shape libraries current-file-id] (let [shape-id (:id shape) - file (get current-file-id libraries)] + file (get libraries current-file-id)] (generate-sync-shape-direct changes file libraries container shape-id false))) (defmethod generate-sync-shape :colors @@ -837,7 +837,7 @@ shape-inst' (ctn/get-head-shape (:objects container-inst) parent) component' (or (ctkl/get-component library (:component-id shape-inst')) (ctkl/get-deleted-component library (:component-id shape-inst')))] - (if (some? component) + (if (some? component') (recur shape-inst' component') nil)))))) @@ -2241,7 +2241,7 @@ (contains? #{:auto :fix} (:layout-item-h-sizing shape-main)) (propagate-attrs shape-main #{:layout-item-h-sizing} omit-touched?) - (contains? #{:auto :fix} (:layout-item-h-sizing shape-main)) + (contains? #{:auto :fix} (:layout-item-v-sizing shape-main)) (propagate-attrs shape-main #{:layout-item-v-sizing} omit-touched?))) {:ignore-touched true}) @@ -2271,7 +2271,7 @@ (contains? #{:auto :fix} (:layout-item-h-sizing shape-copy)) (propagate-attrs shape-copy #{:layout-item-h-sizing} omit-touched?) - (contains? #{:auto :fix} (:layout-item-h-sizing shape-copy)) + (contains? #{:auto :fix} (:layout-item-v-sizing shape-copy)) (propagate-attrs shape-copy #{:layout-item-v-sizing} omit-touched?))) {:ignore-touched true})