Skip to content

Commit 3b5f96b

Browse files
g4rry420sheremet-va
authored andcommitted
fix: Module Graph view is blocking the Console view
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
1 parent 52aef92 commit 3b5f96b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/ui/client/components/FileDetails.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import type { ModuleGraphData } from '#types'
99
const data = ref<ModuleGraphData>({ externalized: [], graph: {}, inlined: [] })
1010
const graph = ref<ModuleGraph>({ nodes: [], links: [] })
1111
const draft = ref(false)
12-
const hasGraphBeenDisplayed = ref(false)
1312
1413
debouncedWatch(
1514
current,
@@ -29,9 +28,6 @@ function open() {
2928
}
3029
3130
function changeViewMode(view: Params['view']) {
32-
if (view === 'graph')
33-
hasGraphBeenDisplayed.value = true
34-
3531
viewMode.value = view
3632
}
3733
const consoleCount = computed(() => {
@@ -99,8 +95,8 @@ function onDraft(value: boolean) {
9995
</div>
10096

10197
<div flex flex-col flex-1 overflow="hidden">
102-
<div v-if="hasGraphBeenDisplayed" flex-1>
103-
<ViewModuleGraph v-show="viewMode === 'graph'" :graph="graph" data-testid="graph" />
98+
<div v-show="viewMode === 'graph'" flex-1>
99+
<ViewModuleGraph :graph="graph" data-testid="graph" />
104100
</div>
105101
<ViewEditor v-if="viewMode === 'editor'" :key="current.filepath" :file="current" data-testid="editor" @draft="onDraft" />
106102
<ViewConsoleOutput v-else-if="viewMode === 'console'" :file="current" data-testid="console" />

0 commit comments

Comments
 (0)