diff --git a/CHANGES.md b/CHANGES.md index 62d73c4c80..9680ad9dcc 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -41,6 +41,12 @@ - Fix main component receives focus and is selected when using 'Show Main Component' [Taiga #11402](https://tree.taiga.io/project/penpot/issue/11402) - Fix duplicating pages with mainInstance shapes nested inside groups [Taiga #10774](https://tree.taiga.io/project/penpot/issue/10774) +## 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/event.cljs b/frontend/src/app/main/data/event.cljs index 888bd6e1d0..934a0f4757 100644 --- a/frontend/src/app/main/data/event.cljs +++ b/frontend/src/app/main/data/event.cljs @@ -245,4 +245,4 @@ (defn event [props] - (ptk/data-event ::events props)) + (ptk/data-event ::event props)) diff --git a/frontend/src/app/main/data/workspace/texts.cljs b/frontend/src/app/main/data/workspace/texts.cljs index 6a56966829..2e10a5318b 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