Update aboutPanelStore.ts

simplify computed version access with shared system reference
This commit is contained in:
Yiqun Xu
2025-06-08 22:27:53 -07:00
committed by GitHub
parent a8bbe8f301
commit 8002c471ea

View File

@@ -12,12 +12,11 @@ export const useAboutPanelStore = defineStore('aboutPanel', () => {
const extensionStore = useExtensionStore()
const systemStatsStore = useSystemStatsStore()
const coreVersion = computed(
() => systemStatsStore?.systemStats?.system?.comfyui_version ?? ''
)
const system = computed(() => systemStatsStore?.systemStats?.system)
const coreVersion = computed(() => system.value?.comfyui_version ?? '')
const workflowsTemplatesVersion = computed(
() =>
systemStatsStore?.systemStats?.system?.workflows_templates_version ?? ''
() => system.value?.workflows_templates_version ?? ''
)
const coreBadges = computed<AboutPageBadge[]>(() => [