From 4e4e07d1f267ee86c166d03e29207709d7630594 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 16 Nov 2021 13:12:05 +0000 Subject: [PATCH] Fix race condition crash on initial builder data page load --- .../src/pages/builder/app/[application]/data/index.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/app/[application]/data/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/index.svelte index 5e5c1e2957..de9a392f9c 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/index.svelte @@ -7,7 +7,7 @@ let modal $: setupComplete = - $datasources.list.find(x => (x._id = "bb_internal")).entities.length > 1 || + $datasources.list.find(x => (x._id = "bb_internal"))?.entities.length > 1 || $datasources.list.length > 1 onMount(() => {