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
minor
Roman Pominovb1f355f94133
diff --git a/apps/designer/app/shared/router-utils/canvas-request-params.ts b/apps/designer/app/shared/router-utils/canvas-request-params.tsindex e4720149c1..5b6f0e7ecc 100644--- a/apps/designer/app/shared/router-utils/canvas-request-params.ts+++ b/apps/designer/app/shared/router-utils/canvas-request-params.ts@@ -27,15 +27,10 @@ export const getCanvasRequestParams = (request: {return undefined;}- let projectDomain = undefined;- let projectId = undefined;-- const projectIdParam = url.searchParams.get("projectId");- if (projectIdParam !== null) {- projectId = projectIdParam;- }+ const projectId = url.searchParams.get("projectId");- if (projectId === undefined) {+ let projectDomain = undefined;+ if (projectId === null) {// @todo all this subdomain logic is very hackyconst host =request.headers.get("x-forwarded-host") ||@@ -54,7 +49,7 @@ export const getCanvasRequestParams = (request: {throw new Error(`Invalid mode "${modeParam}"`);}- if (projectId !== undefined) {+ if (projectId !== null) {return {projectId,mode,@@ -70,5 +65,5 @@ export const getCanvasRequestParams = (request: {};}- return undefined;+ return;};