diff --git a/frontend/src/organisms/connection/collection/indexes.svelte b/frontend/src/organisms/connection/collection/indexes.svelte index 877adbe..7ea3ae6 100644 --- a/frontend/src/organisms/connection/collection/indexes.svelte +++ b/frontend/src/organisms/connection/collection/indexes.svelte @@ -6,7 +6,7 @@ export let collection; let indexes = []; - let activeKey = ''; + let activePath = []; let objectViewerData = ''; async function getIndexes() { @@ -18,12 +18,12 @@ async function drop(key) { if (typeof key !== 'string') { - key = activeKey; + key = activePath[0]; } const success = await DropIndex(collection.hostKey, collection.dbKey, collection.key, key); if (success) { await getIndexes(); - activeKey = ''; + activePath[0] = ''; } } @@ -36,7 +36,7 @@