Skip to content

Commit af06cd7

Browse files
committed
Suggested change
1 parent 4494b77 commit af06cd7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/rightSidePanel/RightSidePanel.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@ const tabs = computed<RightSidePanelTabList>(() => {
8585
8686
// Use global state for activeTab and ensure it's valid
8787
watchEffect(() => {
88-
if (!tabs.value.some((tab) => tab.value === activeTab.value)) {
89-
activeTab.value = tabs.value[0].value as 'parameters' | 'settings' | 'info'
88+
if (
89+
!tabs.value.some((tab) => tab.value === activeTab.value) &&
90+
!(activeTab.value === 'subgraph' && isSubgraphNode.value)
91+
) {
92+
rightSidePanelStore.openPanel(tabs.value[0].value)
9093
}
9194
})
9295
</script>

0 commit comments

Comments
 (0)