From 31f62dcc124bdcce8b41c2260253d939f896256d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 1 Oct 2024 16:31:55 +0200 Subject: [PATCH] :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)))