mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Fix issue where schema is null (#8322)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
9ccfa79199
commit
4273b72d71
@ -108,10 +108,12 @@ class HassioAddonConfig extends LitElement {
|
|||||||
|
|
||||||
protected firstUpdated(changedProps) {
|
protected firstUpdated(changedProps) {
|
||||||
super.firstUpdated(changedProps);
|
super.firstUpdated(changedProps);
|
||||||
this._canShowSchema = !this.addon.schema.find(
|
this._canShowSchema =
|
||||||
// @ts-ignore
|
this.addon.schema !== null &&
|
||||||
(entry) => !SUPPORTED_UI_TYPES.includes(entry.type) || entry.multiple
|
!this.addon.schema.find(
|
||||||
);
|
// @ts-ignore
|
||||||
|
(entry) => !SUPPORTED_UI_TYPES.includes(entry.type) || entry.multiple
|
||||||
|
);
|
||||||
this._yamlMode = !this._canShowSchema;
|
this._yamlMode = !this._canShowSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ export interface HassioAddonDetails extends HassioAddonInfo {
|
|||||||
privileged: any;
|
privileged: any;
|
||||||
protected: boolean;
|
protected: boolean;
|
||||||
rating: "1-6";
|
rating: "1-6";
|
||||||
schema: HaFormSchema[];
|
schema: HaFormSchema[] | null;
|
||||||
services_role: string[];
|
services_role: string[];
|
||||||
slug: string;
|
slug: string;
|
||||||
startup: "initialize" | "system" | "services" | "application" | "once";
|
startup: "initialize" | "system" | "services" | "application" | "once";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user