diff --git a/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte b/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte
index 84c737eb67..19713595ce 100644
--- a/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte
+++ b/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte
@@ -63,20 +63,19 @@
{#if openDataSources.includes(datasource._id)}
+ {#each $queries.list.filter(query => query.datasourceId === datasource._id) as query}
+ onClickQuery(query)}
+ >
+
+
+ {/each}
{/if}
-
- {#each $queries.list.filter(query => query.datasourceId === datasource._id) as query}
- onClickQuery(query)}
- >
-
-
- {/each}
{/each}
{/if}