From 09ba1c262bf18254182528cca10117e723c174aa Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 31 Jan 2024 16:52:03 +0100 Subject: [PATCH] :bug: Add minor adjustment to migration 33 to accept and fix invalid root frames --- 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 774a71717f..dfce09424a 100644 --- a/common/src/app/common/files/migrations.cljc +++ b/common/src/app/common/files/migrations.cljc @@ -623,6 +623,10 @@ (-> object (assoc :parent-id uuid/zero) (assoc :frame-id uuid/zero) + ;; We explicitly dissoc them and let the shape-setup + ;; to regenerate it with valid values. + (dissoc :selrect) + (dissoc :points) (cts/setup-shape)) object))