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,7 +132,11 @@ function updateBranchOrder(
return invoke<object>('update_virtual_branch', {
projectId: projectId,
branch: { id: branchId, order }
}).catch(() => {
})
.then(() => {
refresh(projectId, writable);
})
.catch(() => {
error('Unable to update branch order!');
});
}