mirror of https://github.com/penpot/penpot.git
Fix crash on applying col/row gap
This commit is contained in:
parent
3f14af9e03
commit
a893a66ec8
|
|
@ -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…
Reference in New Issue