From 8363b86cfa87ff56dd0c0aa33292fce084ed8451 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Mon, 18 Mar 2024 15:48:22 +0100 Subject: [PATCH] :bug: Fix shadows lost on import export --- common/src/app/common/files/migrations.cljc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/src/app/common/files/migrations.cljc b/common/src/app/common/files/migrations.cljc index 8ba0857802..105b64e5b6 100644 --- a/common/src/app/common/files/migrations.cljc +++ b/common/src/app/common/files/migrations.cljc @@ -853,11 +853,11 @@ (defn migrate-up-44 [data] (letfn [(fix-shadow [shadow] - (if (string? (:color shadow)) - (let [color {:color (:color shadow) - :opacity 1}] - (assoc shadow :color color)) - shadow)) + (let [color (if (string? (:color shadow)) + {:color (:color shadow) + :opacity 1} + (d/without-nils (:color shadow)))] + (assoc shadow :color color))) (update-object [object] (d/update-when object :shadow