From 5a16e3d0ea8b815912ad1af80bd9a142aeec1a6c Mon Sep 17 00:00:00 2001 From: istarkov Date: Mon, 23 Sep 2024 18:07:02 +0000 Subject: [PATCH] Fix publish --- apps/builder/app/shared/db/canvas.server.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/builder/app/shared/db/canvas.server.ts b/apps/builder/app/shared/db/canvas.server.ts index 836e556f7524..f98ede7183d7 100644 --- a/apps/builder/app/shared/db/canvas.server.ts +++ b/apps/builder/app/shared/db/canvas.server.ts @@ -34,13 +34,15 @@ export const loadProductionCanvasData = async ( // Check that build deployment domains are still active and verified // for examle: redeploy created few days later if (deployment.destination !== "static") { - deployment.domains = deployment.domains.filter((domain) => - currentProjectDomains.some( - (projectDomain) => - projectDomain.domain === domain && - projectDomain.status === "ACTIVE" && - projectDomain.verified - ) + deployment.domains = deployment.domains.filter( + (domain) => + project.domain === domain || + currentProjectDomains.some( + (projectDomain) => + projectDomain.domain === domain && + projectDomain.status === "ACTIVE" && + projectDomain.verified + ) ); }