mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 12:46:35 +00:00
Fix update of cached datatables on connect (#5114)
This commit is contained in:
parent
15aee6a66a
commit
9da32880ec
@ -117,6 +117,14 @@ export class HaDataTable extends LitElement {
|
|||||||
this._checkedRowsChanged();
|
this._checkedRowsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public connectedCallback() {
|
||||||
|
super.connectedCallback();
|
||||||
|
if (this._filteredData.length) {
|
||||||
|
// Force update of location of rows
|
||||||
|
this._filteredData = [...this._filteredData];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected firstUpdated(properties: PropertyValues) {
|
protected firstUpdated(properties: PropertyValues) {
|
||||||
super.firstUpdated(properties);
|
super.firstUpdated(properties);
|
||||||
this._worker = sortFilterWorker();
|
this._worker = sortFilterWorker();
|
||||||
|
@ -197,6 +197,7 @@ export class HaConfigLovelaceDashboards extends LitElement {
|
|||||||
},
|
},
|
||||||
...dashboards.map((dashboard) => {
|
...dashboards.map((dashboard) => {
|
||||||
return {
|
return {
|
||||||
|
filename: "",
|
||||||
...dashboard,
|
...dashboard,
|
||||||
default: localStorage.defaultPage === dashboard.url_path,
|
default: localStorage.defaultPage === dashboard.url_path,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user