From c99bb2d712ec3b0cf0d7b2903bd153982e48cec3 Mon Sep 17 00:00:00 2001 From: Dean Date: Fri, 5 Jul 2024 09:22:51 +0100 Subject: [PATCH] Added optional chaining to account for datasource not having been initialised --- packages/frontend-core/src/components/FilterBuilder.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend-core/src/components/FilterBuilder.svelte b/packages/frontend-core/src/components/FilterBuilder.svelte index 5f58c9ea7f..c0bc328a4e 100644 --- a/packages/frontend-core/src/components/FilterBuilder.svelte +++ b/packages/frontend-core/src/components/FilterBuilder.svelte @@ -31,7 +31,7 @@ if ( tables.find( table => - table._id === datasource.tableId && + table._id === datasource?.tableId && table.sourceId === DEFAULT_BB_DATASOURCE_ID ) && !schemaFields.some(field => field.name === "_id")