diff --git a/frontend/src/organisms/connection/collection/indexes.svelte b/frontend/src/organisms/connection/collection/indexes.svelte index b102e28..22e08a2 100644 --- a/frontend/src/organisms/connection/collection/indexes.svelte +++ b/frontend/src/organisms/connection/collection/indexes.svelte @@ -16,9 +16,9 @@ } } - async function drop(key = activeKey) { - if (!key) { - return; + async function drop(key) { + if (typeof key !== 'string') { + key = activeKey; } const success = await DropIndex(collection.hostKey, collection.dbKey, collection.key, key); if (success) { @@ -45,7 +45,7 @@