diff --git a/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte b/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte index 8f5a35ea1f..1c264a5aaf 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte @@ -171,10 +171,7 @@ } // Check for a matching viewV2 - const selectedViewV2 = viewsV2.selected?.name - const viewV2Table = options.find(table => { - return table.views?.[selectedViewV2] != null - }) + const viewV2Table = options.find(x => x._id === viewsV2.selected?.tableId) return viewV2Table != null }