mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-22 17:11:43 +03:00
updateBranchOrder refreshes branches list
This commit is contained in:
parent
09718c5c4b
commit
56cd409d85
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user