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:
parent
3f14af9e03
commit
a893a66ec8
1 changed files with 4 additions and 3 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue