mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: renamed function
This commit is contained in:
1 parent
da76eadc39
commit
5417e5ac3b
1 file changed
+2
-2
+2
-2
@@ -12,7 +12,7 @@
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
const deleteElement = async () => {
|
||||
const handleDelete = async () => {
|
||||
try {
|
||||
await sdkForProject.databases.deleteIndex($collection.$id, selectedIndex.key);
|
||||
showDelete = false;
|
||||
@@ -26,7 +26,7 @@
|
||||
};
|
||||
</script>
|
||||
|
||||
<Form on:submit={deleteElement}>
|
||||
<Form on:submit={handleDelete}>
|
||||
<Modal warning={true} bind:show={showDelete}>
|
||||
<svelte:fragment slot="header">Delete Index</svelte:fragment>
|
||||
|
||||
|
||||
Reference in new issue
Block a user