File tree Expand file tree Collapse file tree
packages/devtools/client/pages/modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const route = useRoute()
1313const router = useRouter ()
1414const name = computed (() => props .name ?? route .params .name )
1515const 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
1818onMounted (() => {
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' " >
You can’t perform that action at this time.
0 commit comments