updateBranchOrder refreshes branches list

This commit is contained in:
Kiril Videlov 2023-07-03 14:41:13 +03:00 committed by Kiril Videlov
parent 09718c5c4b
commit 56cd409d85

View File

@ -132,9 +132,13 @@ function updateBranchOrder(
return invoke<object>('update_virtual_branch', {
projectId: projectId,
branch: { id: branchId, order }
}).catch(() => {
error('Unable to update branch order!');
});
})
.then(() => {
refresh(projectId, writable);
})
.catch(() => {
error('Unable to update branch order!');
});
}
function applyBranch(writable: Writable<Loadable<Branch[]>>, projectId: string, branchId: string) {