0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 00:58:26 -05:00

🐛 Fix error when updating a library without components

This commit is contained in:
Andrés Moya 2020-09-24 10:23:50 +02:00
parent 747b4e9600
commit e55f33d48d

View file

@ -447,7 +447,8 @@
(watch [_ state stream]
(let [[rchanges uchanges] (generate-sync-file state file-id)]
(rx/concat
(rx/of (dwc/commit-changes rchanges uchanges {:commit-local? true}))
(when rchanges
(rx/of (dwc/commit-changes rchanges uchanges {:commit-local? true})))
(when file-id
(rp/mutation :update-sync
{:file-id (get-in state [:workspace-file :id])