Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
remove unnecessary `as`
Roman Pominovf2fdab07f05f
diff --git a/apps/designer/app/shared/form-utils/validation.ts b/apps/designer/app/shared/form-utils/validation.tsindex f8907accb9..e3883e4197 100644--- a/apps/designer/app/shared/form-utils/validation.ts+++ b/apps/designer/app/shared/form-utils/validation.ts@@ -57,7 +57,7 @@ export const toastUnknownFieldErrors = (if (knownFields !== undefined) {for (const fieldName in errors.fieldErrors) {if (knownFields.includes(fieldName) === false) {- for (const message of errors.fieldErrors[fieldName] as string[]) {+ for (const message of errors.fieldErrors[fieldName] ?? []) {toast.error(`${fieldName}: ${message}`);}}