mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-27 04:52:56 +00:00
Fix label filters from URL (#22447)
This commit is contained in:
@@ -223,8 +223,9 @@ export class HaConfigDeviceDashboard extends SubscribeMixin(LitElement) {
|
||||
private _setFiltersFromUrl() {
|
||||
const domain = this._searchParms.get("domain");
|
||||
const configEntry = this._searchParms.get("config_entry");
|
||||
const label = this._searchParms.has("label");
|
||||
|
||||
if (!domain && !configEntry) {
|
||||
if (!domain && !configEntry && !label) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -247,10 +248,7 @@ export class HaConfigDeviceDashboard extends SubscribeMixin(LitElement) {
|
||||
items: undefined,
|
||||
},
|
||||
};
|
||||
|
||||
if (this._searchParms.has("label")) {
|
||||
this._filterLabel();
|
||||
}
|
||||
this._filterLabel();
|
||||
}
|
||||
|
||||
private _filterLabel() {
|
||||
|
||||
@@ -1013,8 +1013,9 @@ ${
|
||||
private _setFiltersFromUrl() {
|
||||
const domain = this._searchParms.get("domain");
|
||||
const configEntry = this._searchParms.get("config_entry");
|
||||
const label = this._searchParms.has("label");
|
||||
|
||||
if (!domain && !configEntry) {
|
||||
if (!domain && !configEntry && !label) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1025,10 +1026,7 @@ ${
|
||||
"ha-filter-integrations": domain ? [domain] : [],
|
||||
config_entry: configEntry ? [configEntry] : [],
|
||||
};
|
||||
|
||||
if (this._searchParms.has("label")) {
|
||||
this._filterLabel();
|
||||
}
|
||||
this._filterLabel();
|
||||
}
|
||||
|
||||
private _filterLabel() {
|
||||
|
||||
Reference in New Issue
Block a user