fix: Don't run the query string actions until after initialization (#1579)
This commit is contained in:
+4
-3
@@ -302,9 +302,10 @@ class FrigateCard extends LitElement {
|
||||
`;
|
||||
}
|
||||
|
||||
protected firstUpdated(): void {
|
||||
// Execute query string actions after first render is complete.
|
||||
this._controller.getQueryStringManager().executeNonViewRelated();
|
||||
protected updated(): void {
|
||||
if (this._controller.getInitializationManager().isInitializedMandatory()) {
|
||||
this._controller.getQueryStringManager().executeIfNecessary();
|
||||
}
|
||||
}
|
||||
|
||||
protected _renderInDialogIfNecessary(contents: TemplateResult): TemplateResult | void {
|
||||
|
||||
Reference in New Issue
Block a user