mirror of
https://github.com/penpot/penpot.git
synced 2025-02-08 08:09:14 -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/reify ::update-layout-spacing
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ state _]
|
(watch [_ state _]
|
||||||
(let [layout-shape-ids (-> (wsh/lookup-shapes state shape-ids)
|
(let [layout-shape-ids (->> (wsh/lookup-shapes state shape-ids)
|
||||||
(comp (filter :layout)
|
(eduction
|
||||||
(map :id)))]
|
(filter :layout)
|
||||||
|
(map :id)))]
|
||||||
(rx/of
|
(rx/of
|
||||||
(if-let [layout-gap (cond
|
(if-let [layout-gap (cond
|
||||||
(:row-gap attributes) {:row-gap value}
|
(:row-gap attributes) {:row-gap value}
|
||||||
|
|
Loading…
Add table
Reference in a new issue