Skip to content

Commit 2e968cd

Browse files
committed
fix: require auth condition
1 parent e1e9527 commit 2e968cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/devtools/client/pages/modules/custom-[name].vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const route = useRoute()
1313
const router = useRouter()
1414
const name = computed(() => props.name ?? route.params.name)
1515
const tabs = useAllTabs()
16-
const tab = computed(() => tabs.value.find(i => i.name === name.value) as ModuleCustomTab)
16+
const tab = computed(() => tabs.value.find(i => i.name === name.value) as ModuleCustomTab | undefined)
1717
1818
onMounted(() => {
1919
// if the tab is not found and passed a certain timeout, redirect to the overview page
@@ -46,7 +46,7 @@ onMounted(() => {
4646
</div>
4747
</NPanelGrids>
4848
</template>
49-
<template v-if="tab.requireAuth && !isDevAuthed">
49+
<template v-else-if="tab.requireAuth && !isDevAuthed">
5050
<AuthRequiredPanel />
5151
</template>
5252
<template v-else-if="tab.view.type === 'iframe'">

0 commit comments

Comments
 (0)