From 40c300fa1a3fa044ad042dfc3773a19478ffb2cf Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 10 Jul 2025 09:17:37 +0200 Subject: [PATCH] :bug: Fix unexpected exception on processing old texts --- CHANGES.md | 7 +++++++ frontend/src/app/main/data/workspace/texts.cljs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 6685bf3b97..f34c011a8c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,12 @@ # CHANGELOG +## 2.8.1 (Unreleased) + +### :bug: Bugs fixed + +- Fix unexpected exception on processing old texts [Github #6889](https://github.com/penpot/penpot/pull/6889) + + ## 2.8.0 ### :rocket: Epics and highlights diff --git a/frontend/src/app/main/data/workspace/texts.cljs b/frontend/src/app/main/data/workspace/texts.cljs index 8dc0d22210..0e06f54e30 100644 --- a/frontend/src/app/main/data/workspace/texts.cljs +++ b/frontend/src/app/main/data/workspace/texts.cljs @@ -479,7 +479,7 @@ ;; We don't have the fills attribute. It's an old text without color ;; so need to be black (and (nil? (:fills node)) (empty? color-attrs)) - (update :fills conj txt/default-text-attrs) + (assoc :fills (:fills txt/default-text-attrs)) ;; Remove duplicates from the fills :always