Skip to content

Commit

Permalink
fix install
Browse files Browse the repository at this point in the history
  • Loading branch information
IldarKamalov committed Jul 1, 2024
1 parent 91d5dd2 commit 399d28e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions client/src/components/ui/Version.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -35,12 +34,12 @@ const Version = () => {
</>
)}

{checkUpdateFlag && (
{dashboard?.checkUpdateFlag && (
<button
type="button"
className="btn btn-icon btn-icon-sm btn-outline-primary btn-sm ml-2"
onClick={onClick}
disabled={processingVersion}
disabled={dashboard?.processingVersion}
title={t('check_updates_now')}>
<svg className="icons icon12">
<use xlinkHref="#refresh" />
Expand Down

0 comments on commit 399d28e

Please sign in to comment.