From e403194bbacab66983ee2449198d100cc908b31a Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 19 Mar 2025 15:13:16 +0100 Subject: [PATCH] :lipstick: Remove incorrect use of rx/concat on update-shape-position --- .../src/app/main/ui/workspace/tokens/changes.cljs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/changes.cljs b/frontend/src/app/main/ui/workspace/tokens/changes.cljs index 1137b28e4a..8bdc1a67f8 100644 --- a/frontend/src/app/main/ui/workspace/tokens/changes.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/changes.cljs @@ -304,13 +304,11 @@ ptk/WatchEvent (watch [_ state _] (when (number? value) - (let [page-id' (or page-id (get state :current-page-id))] - (rx/concat - (map #(dwt/update-position % (zipmap attributes (repeat value)) - {:ignore-touched true - :page-id page-id'}) - shape-ids)))))))) - + (let [page-id (or page-id (get state :current-page-id))] + (->> (rx/from shape-ids) + (rx/map #(dwt/update-position % (zipmap attributes (repeat value)) + {:ignore-touched true + :page-id page-id}))))))))) (defn update-layout-sizing-limits ([value shape-ids attributes] (update-layout-sizing-limits value shape-ids attributes nil))