0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 23:31:21 -05:00

🐛 Fix null vlaues for grid columns/rows

This commit is contained in:
Alejandro Alonso 2023-06-28 10:46:54 +02:00 committed by Andrey Antukh
parent 050646506e
commit d939a86e75

View file

@ -22,14 +22,14 @@
[:map
[:color ::grid-color]
[:type [::sm/one-of #{:stretch :left :center :right}]]
[:size {:optional true} ::sm/safe-number]
[:size {:optional true} [:maybe ::sm/safe-number]]
[:margin {:optional true} [:maybe ::sm/safe-number]]
[:item-length {:optional true} [:maybe ::sm/safe-number]]
[:gutter {:optional true} [:maybe ::sm/safe-number]]])
(sm/def! ::square-params
[:map
[:size ::sm/safe-number]
[:size {:optional true} [:maybe ::sm/safe-number]]
[:color ::grid-color]])
(sm/def! ::grid