🐛 Fix unexpected exception on processing old texts

This commit is contained in:
Andrey Antukh
2025-07-10 09:17:37 +02:00
parent 5b704faf79
commit 40c300fa1a
2 changed files with 8 additions and 1 deletions

View File

@@ -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

View File

@@ -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