From 5dafd44966f626f0055353f06dcc15c818331b20 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Thu, 14 May 2026 16:03:47 +0200 Subject: [PATCH] :bug: Fix library update button freezes and does not apply updates (#9513) Co-authored-by: Andrey Antukh --- CHANGES.md | 1 + frontend/src/app/main/ui/workspace/libraries.cljs | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 2ab1722db8..92ba030885 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -58,6 +58,7 @@ - Add new numeric inputs for token management on the right sidebar [Taiga #12109](https://tree.taiga.io/project/penpot/us/12109?milestone=513226) - Restore deleted team files in bulk instead of per file (by @Dexterity104) [Github #9248](https://github.com/penpot/penpot/pull/9248) - Preserve Inkscape labels when pasting SVGs (by @jeffrey701) [Github #9252](https://github.com/penpot/penpot/pull/9252) +- Fix library update button freezes and does not apply updates [Taiga #14030](https://tree.taiga.io/project/penpot/issue/14030) ### :bug: Bugs fixed diff --git a/frontend/src/app/main/ui/workspace/libraries.cljs b/frontend/src/app/main/ui/workspace/libraries.cljs index 00834db2ca..b2637398fc 100644 --- a/frontend/src/app/main/ui/workspace/libraries.cljs +++ b/frontend/src/app/main/ui/workspace/libraries.cljs @@ -510,12 +510,13 @@ (mf/deps file-id) (fn [event] (when-not updating? - (let [library-id (some-> (dom/get-target event) + (let [library-id (some-> (dom/get-current-target event) (dom/get-data "library-id") (uuid/parse))] - (st/emit! - (dwl/set-updating-library true) - (dwl/sync-file file-id library-id))))))] + (when library-id + (st/emit! + (dwl/set-updating-library true) + (dwl/sync-file file-id library-id)))))))] [:div {:class (stl/css :updates-content)} [:div {:class (stl/css :update-section)}