💄 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
(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))
(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'})
shape-ids))))))))
:page-id page-id})))))))))
(defn update-layout-sizing-limits
([value shape-ids attributes] (update-layout-sizing-limits value shape-ids attributes nil))