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:
@@ -163,7 +163,6 @@ function openArtifactInWebBuilder(pageName: string, rootDomId: string) {
|
||||
webBuilderStore.currentView.set('code');
|
||||
}
|
||||
webBuilderStore.setSelectedPage(pageName);
|
||||
webBuilderStore.setActiveSectionByPageName(pageName);
|
||||
webBuilderStore.editorStore.scrollToElement(rootDomId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user