mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 00:36:34 +00:00
Guard for missing backup integration (#12696)
This commit is contained in:
parent
01a53439c4
commit
3d66a68791
@ -189,9 +189,11 @@ class HaConfigSystemNavigation extends LitElement {
|
||||
private async _fetchBackupInfo(isHassioLoaded: boolean) {
|
||||
const backups: BackupContent[] | HassioBackup[] = isHassioLoaded
|
||||
? await fetchHassioBackups(this.hass)
|
||||
: await fetchBackupInfo(this.hass).then(
|
||||
: isComponentLoaded(this.hass, "backup")
|
||||
? await fetchBackupInfo(this.hass).then(
|
||||
(backupData) => backupData.backups
|
||||
);
|
||||
)
|
||||
: [];
|
||||
|
||||
if (backups.length > 0) {
|
||||
this._latestBackupDate = (backups as any[]).reduce((a, b) =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user