go to list page after creating list
This commit is contained in:
parent
e37d726a94
commit
f75051d956
1 changed files with 3 additions and 2 deletions
|
|
@ -157,9 +157,10 @@ async function createList() {
|
|||
const { canceled, result: name } = await os.inputText({
|
||||
title: i18n.ts.enterListName,
|
||||
});
|
||||
if (canceled) return;
|
||||
await os.apiWithDialog('users/lists/create', { name: name });
|
||||
if (canceled || name === null) return;
|
||||
const list = await os.apiWithDialog('users/lists/create', { name: name });
|
||||
userListsCache.delete();
|
||||
router.push(`/my/lists/${list.id}`);
|
||||
}
|
||||
|
||||
async function chooseAntenna(ev: MouseEvent): Promise<void> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue