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.
This commit is contained in:
LIlGG
2025-10-11 16:35:02 +08:00
parent 1a4ee99ff0
commit a672fcad1c

View File

@@ -163,7 +163,6 @@ function openArtifactInWebBuilder(pageName: string, rootDomId: string) {
webBuilderStore.currentView.set('code');
}
webBuilderStore.setSelectedPage(pageName);
webBuilderStore.setActiveSectionByPageName(pageName);
webBuilderStore.editorStore.scrollToElement(rootDomId);
}