From 99693f0fc23969f1d51051c3123242a9cda55c36 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 7 Jul 2023 10:20:04 +0200 Subject: [PATCH] :bug: Fix cut/delete text layer when while creating text --- CHANGES.md | 1 + frontend/src/app/main/data/workspace/texts.cljs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 45d018adf..b9a39c120 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -48,6 +48,7 @@ - Fix problem with comments when user left the team [Taiga #5562](https://tree.taiga.io/project/penpot/issue/5562) - Fix problem with images patterns repeating [#3372](https://github.com/penpot/penpot/issues/3372) - Fix grid not being clipped in frames [#3365](https://github.com/penpot/penpot/issues/3365) +- Fix cut/delete text layer when while creating text [Taiga #5602](https://tree.taiga.io/project/penpot/issue/5602) ### :arrow_up: Deps updates diff --git a/frontend/src/app/main/data/workspace/texts.cljs b/frontend/src/app/main/data/workspace/texts.cljs index a9a3f4fe7..24bb875f3 100644 --- a/frontend/src/app/main/data/workspace/texts.cljs +++ b/frontend/src/app/main/data/workspace/texts.cljs @@ -142,7 +142,8 @@ (rx/merge (rx/of (update-editor-state shape nil)) (when (and (not= content (:content shape)) - (some? (:current-page-id state))) + (some? (:current-page-id state)) + (some? shape)) (rx/of (dch/update-shapes [id]