Skip to content

Commit 8f02b5d

Browse files
committed
inject var test fix
1 parent aeadf36 commit 8f02b5d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/cylc/workspace/Toolbar.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,11 @@ export default {
318318
setup () {
319319
const { showNavBtn } = useNavBtn()
320320
const { toggleDrawer } = useDrawer()
321-
const uisFlowVersion = inject('versionInfo').value?.['cylc-flow']
321+
const uisVersionInfo = inject('versionInfo')
322+
let uisFlowVersion = ''
323+
if (uisVersionInfo) {
324+
uisFlowVersion = uisVersionInfo.value?.['cylc-flow']
325+
}
322326
return {
323327
eventBus,
324328
showNavBtn,

0 commit comments

Comments
 (0)