From adffd1f0007c3e609cf9b224a23335d697f65ee1 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 25 Jan 2024 17:21:05 +0100 Subject: [PATCH] :bug: Fix text shapes content internal data type incosistency --- common/src/app/common/files/migrations.cljc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/src/app/common/files/migrations.cljc b/common/src/app/common/files/migrations.cljc index 686b49efb5..025f1d8417 100644 --- a/common/src/app/common/files/migrations.cljc +++ b/common/src/app/common/files/migrations.cljc @@ -795,9 +795,16 @@ (defmethod migrate 43 [data] - (letfn [(update-text-node [node] + (letfn [(number->string [v] + (if (number? v) + (str v) + v)) + + (update-text-node [node] (-> node (d/update-when :fills #(filterv valid-fill? %)) + (d/update-when :font-size number->string) + (d/update-when :font-weight number->string) (d/without-nils))) (update-object [object]