diff --git a/frontend/src/organisms/connection/collection/indexes.svelte b/frontend/src/organisms/connection/collection/indexes.svelte index 86072a4..877adbe 100644 --- a/frontend/src/organisms/connection/collection/indexes.svelte +++ b/frontend/src/organisms/connection/collection/indexes.svelte @@ -28,7 +28,7 @@ } function openJson(indexId) { - const item = indexes?.filter(i => i.name == indexId); + const item = indexes?.find(i => i.name == indexId); objectViewerData = item; } @@ -46,7 +46,7 @@ ({ ...idx, menu: [ { label: 'Drop this index', fn: () => drop(idx.name) } ], - }))} bind:activeKey on:trigger={e => openJson(e.detail)} /> + }))} bind:activeKey on:trigger={e => openJson(e.detail.itemKey)} />