💄 Remove incorrect use of rx/concat on update-shape-position

This commit is contained in:
Andrey Antukh 2025-03-19 15:13:16 +01:00
parent b8c5a10551
commit e403194bba

View file

@ -304,13 +304,11 @@
ptk/WatchEvent ptk/WatchEvent
(watch [_ state _] (watch [_ state _]
(when (number? value) (when (number? value)
(let [page-id' (or page-id (get state :current-page-id))] (let [page-id (or page-id (get state :current-page-id))]
(rx/concat (->> (rx/from shape-ids)
(map #(dwt/update-position % (zipmap attributes (repeat value)) (rx/map #(dwt/update-position % (zipmap attributes (repeat value))
{:ignore-touched true {:ignore-touched true
:page-id page-id'}) :page-id page-id})))))))))
shape-ids))))))))
(defn update-layout-sizing-limits (defn update-layout-sizing-limits
([value shape-ids attributes] (update-layout-sizing-limits value shape-ids attributes nil)) ([value shape-ids attributes] (update-layout-sizing-limits value shape-ids attributes nil))