0
Fork 0
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:
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/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}