0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00

Fix crash on applying col/row gap

This commit is contained in:
Florian Schroedl 2024-07-29 16:07:33 +02:00
parent 3f14af9e03
commit a893a66ec8

View file

@ -127,9 +127,10 @@
(ptk/reify ::update-layout-spacing
ptk/WatchEvent
(watch [_ state _]
(let [layout-shape-ids (-> (wsh/lookup-shapes state shape-ids)
(comp (filter :layout)
(map :id)))]
(let [layout-shape-ids (->> (wsh/lookup-shapes state shape-ids)
(eduction
(filter :layout)
(map :id)))]
(rx/of
(if-let [layout-gap (cond
(:row-gap attributes) {:row-gap value}