Do not require all title popup options be specified.

This commit is contained in:
Dermot Duffy
2023-10-03 19:53:02 -07:00
parent 6bba16cb86
commit 913355ad1d
3 changed files with 36 additions and 11 deletions
+8 -1
View File
@@ -64,7 +64,14 @@ export class FrigateCardTitleControl extends LitElement {
protected _toastRef: Ref<PaperToast> = createRef();
protected render(): TemplateResult {
if (!this.text || !this.config || this.config.mode == 'none' || !this.fitInto) {
if (
!this.text ||
!this.config ||
!this.config.mode ||
this.config.duration_seconds === undefined ||
this.config.mode === 'none' ||
!this.fitInto
) {
return html``;
}