mirror of
https://github.com/penpot/penpot.git
synced 2025-05-15 14:46:37 +02:00
💄 Remove incorrect use of rx/concat on update-shape-position
This commit is contained in:
parent
b8c5a10551
commit
e403194bba
1 changed files with 5 additions and 7 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue