Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Add if statement for styles in config

Robin Dekkers8e235e6dfd7b
diff --git a/ui/app/or-app/src/index.ts b/ui/app/or-app/src/index.ts
index d6119c90c..488e36ea4 100644
--- a/ui/app/or-app/src/index.ts
+++ b/ui/app/or-app/src/index.ts
@@ -374,7 +374,7 @@ export class OrApp<S extends AppStateKeyed> extends LitElement {
return html`<or-mwc-dialog id="app-modal"></or-mwc-dialog>`;
}
return html`
- ${unsafeHTML(this._config.styles.strings)}
+ ${unsafeHTML(this._config.styles ? this._config.styles.strings : ``)}
<or-header .logo="${this._config.logo}" .logoMobile="${this._config.logoMobile}" .config="${this._config.header}"></or-header>
<!-- Main content -->