fix install
This commit is contained in:
parent
91d5dd23ce
commit
399d28e67f
|
@ -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 && (
|
||||
<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" />
|
||||
|
|
Loading…
Reference in New Issue