From e5270a66fc7c13205fb37881c453db1d5b331a60 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Fri, 26 Nov 2021 15:26:51 +0100 Subject: [PATCH] adding check for initinfo --- packages/builder/src/pages/builder/portal/apps/index.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/portal/apps/index.svelte b/packages/builder/src/pages/builder/portal/apps/index.svelte index 15076a9a53..40218b0ca9 100644 --- a/packages/builder/src/pages/builder/portal/apps/index.svelte +++ b/packages/builder/src/pages/builder/portal/apps/index.svelte @@ -264,7 +264,7 @@ await apps.load() // if the portal is loaded from an external URL with a template param const initInfo = await auth.getInitInfo() - if (initInfo.init_template) { + if (initInfo?.init_template) { creatingFromTemplate = true createAppFromTemplateUrl(initInfo.init_template) return