adding check for initinfo

This commit is contained in:
Martin McKeaveney 2021-11-26 15:26:51 +01:00
parent 3b35b7d86b
commit e5270a66fc
1 changed files with 1 additions and 1 deletions

View File

@ -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