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:
parent
ec8b68721b
commit
28ce6d2489
1 changed files with 3 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue