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.

fix: After cloning a shared template, buttons are still disabled (#3595)

Ivan Starkov0981581b86c0
diff --git a/apps/builder/app/routes/builder.$projectId.tsx b/apps/builder/app/routes/builder.$projectId.tsx
index 079cd656f4..ef6790a757 100644
--- a/apps/builder/app/routes/builder.$projectId.tsx
+++ b/apps/builder/app/routes/builder.$projectId.tsx
@@ -158,7 +158,9 @@ export const BuilderRoute = () => {
return (
<ClientOnly>
- <Builder {...data} />
+ {/* Using a key here ensures that certain effects are re-executed inside the builder,
+ especially in cases like cloning a project */}
+ <Builder key={data.project.id} {...data} />
</ClientOnly>
);
};