0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

🐛 Fix unexpected exception on change grid direction on grid editor

This commit is contained in:
Andrey Antukh 2023-11-20 17:30:07 +01:00
parent ec8b68721b
commit 28ce6d2489

View file

@ -1178,7 +1178,7 @@
set-direction-refactor
(mf/use-fn
(mf/deps [layout-type ids])
(mf/deps new-css-system layout-type ids)
(fn [dir]
(let [dir (if new-css-system (keyword dir) dir)]
(if (= :flex layout-type)
@ -1563,7 +1563,8 @@
set-direction
(fn [dir]
(st/emit! (dwsl/update-layout ids {:layout-grid-dir dir})))
(let [dir (if new-css-system (keyword dir) dir)]
(st/emit! (dwsl/update-layout ids {:layout-grid-dir dir}))))
set-gap
(fn [gap-multiple? type val]