🐛 Fix unpublish more than one library at the same time

This commit is contained in:
Eva 2023-07-03 10:46:38 +02:00 committed by Alejandro Alonso
parent e461745479
commit a737c125d5
2 changed files with 23 additions and 18 deletions

View file

@ -24,6 +24,7 @@
- Fix files can be opened from multiple urls [Taiga #5310](https://tree.taiga.io/project/penpot/issue/5310)
- Fix asset color item was created from the selected layer [Taiga #5180](https://tree.taiga.io/project/penpot/issue/5180)
- Fix unpublish more than one library at the same time [Taiga #5532](https://tree.taiga.io/project/penpot/issue/5532)
### :arrow_up: Deps updates

View file

@ -142,7 +142,11 @@
#(st/emit! (dd/set-file-shared (assoc file :is-shared true)))
del-shared
#(st/emit! (dd/set-file-shared (assoc file :is-shared false)))
(mf/use-fn
(mf/deps files)
(fn [_]
(run! #(st/emit! (dd/set-file-shared (assoc % :is-shared false))) files)))
on-add-shared
(fn [event]