File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
packages/ui/client/components Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import type { ModuleGraphData } from '#types'
99const data = ref <ModuleGraphData >({ externalized: [], graph: {}, inlined: [] })
1010const graph = ref <ModuleGraph >({ nodes: [], links: [] })
1111const draft = ref (false )
12- const hasGraphBeenDisplayed = ref (false )
1312
1413debouncedWatch (
1514 current ,
@@ -29,9 +28,6 @@ function open() {
2928}
3029
3130function changeViewMode(view : Params [' view' ]) {
32- if (view === ' graph' )
33- hasGraphBeenDisplayed .value = true
34-
3531 viewMode .value = view
3632}
3733const 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" />
You can’t perform that action at this time.
0 commit comments