mirror of
https://github.com/penpot/penpot.git
synced 2026-03-07 10:41:05 +00:00
🐛 Fix error when updating a library without components
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user