fix: update fetch order to first sync to cloud and then fetch from target

This commit is contained in:
Kiril Videlov 2023-11-28 13:54:23 +01:00 committed by Kiril Videlov
parent 3be483085a
commit 9e37883aaa

View File

@ -23,7 +23,9 @@
e.preventDefault();
e.stopPropagation();
fetching = true;
await Promise.allSettled([branchController.fetchFromTarget(), syncToCloud(projectId)])
syncToCloud(projectId); // don't wait for this
await branchController
.fetchFromTarget()
.then(() => prService.reload())
.finally(() => {
fetching = false;