From 3329216e3c4ec3f184d4ed8e8c65b92918408d90 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 10 Mar 2021 11:57:48 +0100 Subject: [PATCH] :bug: Fixes problem with default square grid --- CHANGES.md | 1 + frontend/src/app/main/data/workspace/grid.cljs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 6bf446afc..9dc3a59a3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -28,6 +28,7 @@ - Fix problem with rotation degree input [#741](https://github.com/penpot/penpot/issues/741) - Fix problem with resolved comments [Taiga #1406](https://tree.taiga.io/project/penpot/issue/1406) - Fix problem with comments styles on dashboard [Taiga #1405](https://tree.taiga.io/project/penpot/issue/1405) +- Fix problem with default square grid [Taiga #1344](https://tree.taiga.io/project/penpot/issue/1344) ### :heart: Community contributions by (Thank you!) diff --git a/frontend/src/app/main/data/workspace/grid.cljs b/frontend/src/app/main/data/workspace/grid.cljs index 0b8a9bd82..92a71120c 100644 --- a/frontend/src/app/main/data/workspace/grid.cljs +++ b/frontend/src/app/main/data/workspace/grid.cljs @@ -45,7 +45,7 @@ ptk/WatchEvent (watch [_ state stream] (let [page-id (:current-page-id state) - data (get-in state [:workspace-data page-id]) + data (get-in state [:workspace-data :pages-index page-id]) params (or (get-in data [:options :saved-grids :square]) (:square default-grid-params)) grid {:type :square