From 8002c471ea38a7bef1d48f957be12b7a027b26d3 Mon Sep 17 00:00:00 2001 From: Yiqun Xu <71995731+yiqun12@users.noreply.github.com> Date: Sun, 8 Jun 2025 22:27:53 -0700 Subject: [PATCH] Update aboutPanelStore.ts simplify computed version access with shared system reference --- src/stores/aboutPanelStore.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/stores/aboutPanelStore.ts b/src/stores/aboutPanelStore.ts index 2f5c04916d..3ffe19bf67 100644 --- a/src/stores/aboutPanelStore.ts +++ b/src/stores/aboutPanelStore.ts @@ -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(() => [