From a672fcad1c6bda7b5ea927826d0218de5e1bc274 Mon Sep 17 00:00:00 2001 From: LIlGG <1103069291@qq.com> Date: Sat, 11 Oct 2025 16:35:02 +0800 Subject: [PATCH] fix: switching pages may cause page confusion Eliminated unnecessary call to webBuilderStore.setActiveSectionByPageName in openArtifactInWebBuilder, as selected page is already set and scrolling to element is handled. --- app/components/chat/Artifact.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/app/components/chat/Artifact.tsx b/app/components/chat/Artifact.tsx index ddff627..d741aa2 100644 --- a/app/components/chat/Artifact.tsx +++ b/app/components/chat/Artifact.tsx @@ -163,7 +163,6 @@ function openArtifactInWebBuilder(pageName: string, rootDomId: string) { webBuilderStore.currentView.set('code'); } webBuilderStore.setSelectedPage(pageName); - webBuilderStore.setActiveSectionByPageName(pageName); webBuilderStore.editorStore.scrollToElement(rootDomId); }