From 8da66e159944bc41a2119b03ec89554b5159697a Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 12 Jan 2022 13:47:50 +0100 Subject: [PATCH] :bug: Fix problem when importing a file with grids --- CHANGES.md | 1 + common/src/app/common/types/page_options.cljc | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 3af59a49d2..05299ba03d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -50,6 +50,7 @@ - Fix lossing changes when changing selection and an input was already changed [Taiga #2329](https://tree.taiga.io/project/penpot/issue/2329), [Taiga #2330](https://tree.taiga.io/project/penpot/issue/2330) - Fix blur input field when click on viewport [Taiga #2164](https://tree.taiga.io/project/penpot/issue/2164) - Fix default page id in workspace [Taiga #2205](https://tree.taiga.io/project/penpot/issue/2205) +- Fix problem when importing a file with grids [Taiga #2314](https://tree.taiga.io/project/penpot/issue/2314) ### :arrow_up: Deps updates diff --git a/common/src/app/common/types/page_options.cljc b/common/src/app/common/types/page_options.cljc index 968be643c8..4901b87222 100644 --- a/common/src/app/common/types/page_options.cljc +++ b/common/src/app/common/types/page_options.cljc @@ -29,12 +29,12 @@ :artboard-grid/color])) (s/def :artboard-grid/column - (s/keys :req-un [:artboard-grid/size - :artboard-grid/color + (s/keys :req-un [:artboard-grid/color] + :opt-un [:artboard-grid/size + :artboard-grid/type + :artboard-grid/item-length :artboard-grid/margin - :artboard-grid/gutter] - :opt-un [:artboard-grid/type - :artboard-grid/item-length])) + :artboard-grid/gutter])) (s/def :artboard-grid/row :artboard-grid/column)