Skip to content

Commit a672fca

Browse files
committed
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.
1 parent 1a4ee99 commit a672fca

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

app/components/chat/Artifact.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ function openArtifactInWebBuilder(pageName: string, rootDomId: string) {
163163
webBuilderStore.currentView.set('code');
164164
}
165165
webBuilderStore.setSelectedPage(pageName);
166-
webBuilderStore.setActiveSectionByPageName(pageName);
167166
webBuilderStore.editorStore.scrollToElement(rootDomId);
168167
}
169168

0 commit comments

Comments
 (0)