🐛 Fix library update button freezes and does not apply updates (#9513)

Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
Pablo Alba 2026-05-14 16:03:47 +02:00 committed by GitHub
parent fb2734cd02
commit 5dafd44966
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

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

View File

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