Skip to content

Commit

Permalink
fix: correctly read plugins list
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 30, 2023
1 parent fad2eb5 commit 76bc71d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/devtools/client/pages/modules/plugins.vue
Expand Up @@ -7,11 +7,11 @@ definePageMeta({
category: 'analyze',
})
const config = useServerConfig()
const app = useServerApp()
const client = useClient()
const plugins = computed((): PluginInfoWithMetic[] => {
const plugins = config.value?.plugins || []
const plugins = app.value?.plugins || []
const metics = client.value?.getClientPluginMetrics() || []
return plugins.map((plugin) => {
Expand All @@ -33,10 +33,9 @@ const totalTime = computed(() => {

<template>
<NSectionBlock
v-if="config"
icon="carbon-plug"
text="Plugins"
:description="`Total plugins: ${config.plugins.length}`"
:description="`Total plugins: ${plugins.length}`"
>
<div pt4>
<PluginItem
Expand Down

0 comments on commit 76bc71d

Please sign in to comment.