diff --git a/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte b/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte
index 0cc61c69e6..dac0e7af74 100644
--- a/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte
+++ b/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte
@@ -22,6 +22,7 @@
import { TableNames } from "constants"
import { userSelectedResourceMap } from "builderStore"
+ export let searchTerm
let openDataSources = []
$: enrichedDataSources = enrichDatasources(
@@ -209,9 +210,11 @@
{/if}
- {#if datasource.open}
+ {#if datasource.open || searchTerm}
- {#each $queries.list.filter(query => query.datasourceId === datasource._id) as query}
+ {#each $queries.list.filter(query => query.datasourceId === datasource._id && (!searchTerm || query.name
+ ?.toLowerCase()
+ ?.indexOf(searchTerm.toLowerCase()) > -1)) as query}