This commit is contained in:
Bram Kragten 2024-04-22 20:15:52 +02:00
parent a428ad0655
commit 45dce18e4d
2 changed files with 5 additions and 5 deletions

View File

@ -158,7 +158,7 @@ export class HaTabsSubpageDataTable extends LitElement {
@property({ type: Boolean }) public showFilters = false; @property({ type: Boolean }) public showFilters = false;
@property({ attribute: false }) public initalSorting?: { @property({ attribute: false }) public initialSorting?: {
column: string; column: string;
direction: SortingDirection; direction: SortingDirection;
}; };
@ -196,9 +196,9 @@ export class HaTabsSubpageDataTable extends LitElement {
if (this.initialGroupColumn) { if (this.initialGroupColumn) {
this._setGroupColumn(this.initialGroupColumn); this._setGroupColumn(this.initialGroupColumn);
} }
if (this.initalSorting) { if (this.initialSorting) {
this._sortColumn = this.initalSorting.column; this._sortColumn = this.initialSorting.column;
this._sortDirection = this.initalSorting.direction; this._sortDirection = this.initialSorting.direction;
} }
} }

View File

@ -671,7 +671,7 @@ export class HaConfigDeviceDashboard extends SubscribeMixin(LitElement) {
) )
).length} ).length}
.initialGroupColumn=${this._activeGrouping} .initialGroupColumn=${this._activeGrouping}
.initalSorting=${this._activeSorting} .initialSorting=${this._activeSorting}
@clear-filter=${this._clearFilter} @clear-filter=${this._clearFilter}
@search-changed=${this._handleSearchChange} @search-changed=${this._handleSearchChange}
@sorting-changed=${this._handleSortingChanged} @sorting-changed=${this._handleSortingChanged}