1
0
Fork 0
mirror of synced 2024-07-21 06:05:52 +12:00

Display only if there are search results

This commit is contained in:
Adria Navarro 2023-11-10 10:52:06 +01:00
parent 977f81c412
commit 3829797e3c

View file

@ -111,6 +111,8 @@
searchTerm,
onlyOneSource: onlySource,
})
const show = dsQueries.length || dsTables.length
return {
...datasource,
selected,
@ -118,6 +120,7 @@
open,
queries: dsQueries,
tables: dsTables,
show,
}
})
}
@ -218,7 +221,7 @@
on:click={() => selectTable(TableNames.USERS)}
selectedBy={$userSelectedResourceMap[TableNames.USERS]}
/>
{#each enrichedDataSources as datasource}
{#each enrichedDataSources.filter(ds => ds.show) as datasource}
<NavItem
border
text={datasource.name}