diff --git a/packages/builder/src/components/start/UpdateAppModal.svelte b/packages/builder/src/components/start/UpdateAppModal.svelte index 508a0723b1..2caf9af7ef 100644 --- a/packages/builder/src/components/start/UpdateAppModal.svelte +++ b/packages/builder/src/components/start/UpdateAppModal.svelte @@ -55,7 +55,7 @@ "Another app with the same name already exists", value => { return !existingAppNames.some( - appName => dirty && appName.toLowerCase() === value.toLowerCase() + appName => dirty && appName?.toLowerCase() === value.toLowerCase() ) } ) @@ -67,7 +67,7 @@ try { await obj.validate(values, { abortEarly: false }) } catch (validationErrors) { - validationErrors.inner.forEach(error => { + validationErrors.inner?.forEach(error => { $errors[error.path] = capitalise(error.message) }) }