From 31f62dcc124bdcce8b41c2260253d939f896256d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 1 Oct 2024 16:31:55 +0200 Subject: [PATCH 1/2] :bug: Fix incorrect flows conversion on migration 55 --- common/src/app/common/files/migrations.cljc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/files/migrations.cljc b/common/src/app/common/files/migrations.cljc index 64ec47d847..ed5dd1ad45 100644 --- a/common/src/app/common/files/migrations.cljc +++ b/common/src/app/common/files/migrations.cljc @@ -1057,8 +1057,9 @@ (assoc :default-grids (:saved-grids options)) (and (some? (:flows options)) - (not (contains? page :flows))) - (assoc :flows (:flows options)) + (or (not (contains? page :flows)) + (not (map? (:flows page))))) + (assoc :flows (d/index-by :id (:flows options))) (and (some? (:guides options)) (not (contains? page :guides))) From 76479a248667877727bd8f85966ad9f3cfdbf7c3 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 1 Oct 2024 16:44:21 +0200 Subject: [PATCH 2/2] :bug: Fix page background migration --- common/src/app/common/files/migrations.cljc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/src/app/common/files/migrations.cljc b/common/src/app/common/files/migrations.cljc index ed5dd1ad45..2b6c4b4506 100644 --- a/common/src/app/common/files/migrations.cljc +++ b/common/src/app/common/files/migrations.cljc @@ -1056,6 +1056,10 @@ (not (contains? page :default-grids))) (assoc :default-grids (:saved-grids options)) + (and (some? (:background options)) + (not (contains? page :background))) + (assoc :background (:background options)) + (and (some? (:flows options)) (or (not (contains? page :flows)) (not (map? (:flows page)))))