Fix backup agents

This commit is contained in:
Paul Bottein 2024-11-18 15:37:01 +01:00
parent 0c0b657c79
commit c90e820c7f
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ export interface BackupContent {
name: string; name: string;
protected: boolean; protected: boolean;
size: number; size: number;
agents?: string[]; agent_ids?: string[];
} }
export interface BackupInfo { export interface BackupInfo {

View File

@ -70,7 +70,7 @@ class HaConfigBackupDashboard extends SubscribeMixin(LitElement) {
locations: { locations: {
title: "Locations", title: "Locations",
template: (backup) => template: (backup) =>
html`${(backup.agents || []).map((agent) => { html`${(backup.agent_ids || []).map((agent) => {
const [domain, name] = agent.split("."); const [domain, name] = agent.split(".");
return html` return html`
<img <img