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: Show publish feedback immediately (#5978)

Oleg Isonen22642fc90baa
diff --git a/apps/builder/app/builder/features/publish/publish.tsx b/apps/builder/app/builder/features/publish/publish.tsx
index 472fec89cc..120ad86e77 100644
--- a/apps/builder/app/builder/features/publish/publish.tsx
+++ b/apps/builder/app/builder/features/publish/publish.tsx
@@ -531,8 +531,6 @@ const Publish = ({
}, [project.domain]);
const publish = async (domains: string[]) => {
- setIsPublishing(true);
-
const publishResult = await nativeClient.domain.publish.mutate({
projectId: project.id,
domains,
@@ -657,6 +655,8 @@ const Publish = ({
}
startTransition(async () => {
+ setIsPublishing(true);
+
try {
await showContentDatabasePublishWarning({
projectId: project.id,