diff --git a/src/components/commandList.svelte b/src/components/commandList.svelte index b718786..8723f34 100644 --- a/src/components/commandList.svelte +++ b/src/components/commandList.svelte @@ -67,7 +67,7 @@ label: 'Delete', onClick: () => { toast.promise( - fetchAPI(`${basePath}/${interaction.id}`, { method: 'DELETE' }).then(() => { refreshList(); removeFromPending();}), + fetchAPI(`${basePath}/${interaction.id}`, { method: 'DELETE' }).finally(() => { refreshList(); removeFromPending();}), { success: `${typeToName(interaction.type)} (${ interaction.name diff --git a/src/routes/editor/+page.svelte b/src/routes/editor/+page.svelte index a21bb5b..94d0263 100644 --- a/src/routes/editor/+page.svelte +++ b/src/routes/editor/+page.svelte @@ -149,8 +149,7 @@ {:else if $commandQuery.isError} Oops Editor failed to fetch command (You wil not be able to edit command {commandId}) {:else} - Editing {typeToName(commandData.type)} - {commandData.name} in {@html id === 'global' ? 'global' : `guild (${id})`} scope + Editing {typeToName(commandData.type)} {commandData.name} in {@html id === 'global' ? 'global' : `guild (${id})`} scope {/if} {:else} Adding new {typeToName($data.type)} Interaction in {@html id === 'global' ? 'global' : `guild (${id})`} scope