Skip to content

Commit 7a7ded5

Browse files
Merge pull request gitbutlerapp#8721 from gitbutlerapp/kiril-bastard
Made it better ❤️
2 parents a1be1c2 + 8849ee1 commit 7a7ded5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

apps/desktop/src/components/v3/MultiStackCreateNew.svelte

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,9 @@
9191
}
9292
}
9393
94-
function showAndPrefillName() {
94+
async function showAndPrefillName() {
9595
createRefModal?.show();
96-
stackService.newBranchName(projectId).then((name) => {
97-
createRefName = name.data || '';
98-
});
96+
createRefName = (await stackService.newBranchName(projectId))?.data ?? '';
9997
}
10098
10199
// TODO: it would be nice to remember the last selected option for the next time the modal is opened

0 commit comments

Comments
 (0)