fix install

This commit is contained in:
Ildar Kamalov 2024-07-01 19:37:05 +03:00
parent 91d5dd23ce
commit 399d28e67f

View file

@ -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" />