{ if (item.type == 'dir') { isExpanded = !isExpanded; } }} on:click={() => { if (item.type == 'dir') { isExpanded = !isExpanded; } else { openNewTab({ tabComponent: 'DbKeyDetailTab', title: 'Key: ' + database, props: { isDefaultBrowser: true, conid, database, }, }); $activeDbKeysStore = { ...$activeDbKeysStore, [`${conid}:${database}`]: item.key, }; } }} extInfo={item.count ? `(${item.count})` : null} {indentLevel} /> {#if isExpanded} {/if}