fix: ui error on restart (#26153)
This commit is contained in:
parent
ca7e319edf
commit
71ccde6e2b
5 changed files with 5 additions and 5 deletions
|
|
@ -25,7 +25,7 @@ export default defineComponent({
|
|||
},
|
||||
computed: {
|
||||
sponsorActive(): boolean {
|
||||
return !!this.sponsor?.status.name;
|
||||
return !!this.sponsor?.status?.name;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@ export default defineComponent({
|
|||
},
|
||||
computed: {
|
||||
sponsorActive(): boolean {
|
||||
return !!this.sponsor?.status.name;
|
||||
return !!this.sponsor?.status?.name;
|
||||
},
|
||||
tariffLink() {
|
||||
return `${docsPrefix()}/docs/reference/configuration/tariffs`;
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ export default defineComponent({
|
|||
return this.providers.length > 0;
|
||||
},
|
||||
sponsorExpires(): boolean {
|
||||
return !!this.sponsor?.status.expiresSoon;
|
||||
return !!this.sponsor?.status?.expiresSoon;
|
||||
},
|
||||
showConfigBadge() {
|
||||
return this.sponsorExpires || isUserConfigError(this.fatal);
|
||||
|
|
|
|||
|
|
@ -391,7 +391,7 @@ export interface SponsorStatus {
|
|||
}
|
||||
|
||||
export interface Sponsor {
|
||||
status: SponsorStatus;
|
||||
status?: SponsorStatus;
|
||||
fromYaml: boolean;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -688,7 +688,7 @@ export default defineComponent({
|
|||
return store.state?.sponsor;
|
||||
},
|
||||
isSponsor(): boolean {
|
||||
return !!this.sponsor?.status.name;
|
||||
return !!this.sponsor?.status?.name;
|
||||
},
|
||||
ocpp() {
|
||||
return store.state?.ocpp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue