Skip to content

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.

chore: Fix marketplace loading issue (#3921)

Ivan Starkov72350f3070ac
diff --git a/packages/project-build/src/db/build.ts b/packages/project-build/src/db/build.ts
index 49ba7bcb8c..ab0c9727bf 100644
--- a/packages/project-build/src/db/build.ts
+++ b/packages/project-build/src/db/build.ts
@@ -162,6 +162,7 @@ export const loadApprovedProdBuildByProjectId = async (
`
)
.eq("projectId", projectId)
+ .eq("isLatestBuild", true)
.eq("project.isDeleted", false)
.eq("project.marketplaceApprovalStatus", "APPROVED")
.single();