From f409dfd3d1a2b3edece734dd5c8b0ac2e90db36c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Thu, 17 Aug 2023 15:50:19 +0200 Subject: [PATCH] :bug: Fix component modified date in v1 --- CHANGES.md | 6 ++++++ common/src/app/common/pages/changes.cljc | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index bfc1adf54..5e28382c6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # CHANGELOG +## 1.19.1 + +### :bug: Bugs fixed + +- Fix components not registered as updated [Taiga #5725](https://tree.taiga.io/project/penpot/issue/5725) + ## 1.19.0 ### :boom: Breaking changes & Deprecations diff --git a/common/src/app/common/pages/changes.cljc b/common/src/app/common/pages/changes.cljc index c11649854..620e635d2 100644 --- a/common/src/app/common/pages/changes.cljc +++ b/common/src/app/common/pages/changes.cljc @@ -329,7 +329,9 @@ component-root (ctn/get-component-shape objects shape {:allow-main? true})] (if (and (some? component-root) (ctk/main-instance? component-root)) (ctkl/set-component-modified data (:component-id component-root)) - data)) + (if (some? component-id) + (ctkl/set-component-modified data component-id) + data))) data))] (as-> data $