diff --git a/client/src/components/ui/Version.tsx b/client/src/components/ui/Version.tsx index f01cfb02..b1a70ba2 100644 --- a/client/src/components/ui/Version.tsx +++ b/client/src/components/ui/Version.tsx @@ -16,8 +16,7 @@ const Version = () => { return null; } - const { dnsVersion, processingVersion, checkUpdateFlag } = dashboard; - const version = dnsVersion || install?.dnsVersion; + const version = dashboard?.dnsVersion || install?.dnsVersion; const onClick = () => { dispatch(getVersion(true)); @@ -35,12 +34,12 @@ const Version = () => { )} - {checkUpdateFlag && ( + {dashboard?.checkUpdateFlag && (