diff --git a/src/layouts/hass-tabs-subpage-data-table.ts b/src/layouts/hass-tabs-subpage-data-table.ts index eee6153e4a04..2942626502fc 100644 --- a/src/layouts/hass-tabs-subpage-data-table.ts +++ b/src/layouts/hass-tabs-subpage-data-table.ts @@ -158,7 +158,7 @@ export class HaTabsSubpageDataTable extends LitElement { @property({ type: Boolean }) public showFilters = false; - @property({ attribute: false }) public initalSorting?: { + @property({ attribute: false }) public initialSorting?: { column: string; direction: SortingDirection; }; @@ -196,9 +196,9 @@ export class HaTabsSubpageDataTable extends LitElement { if (this.initialGroupColumn) { this._setGroupColumn(this.initialGroupColumn); } - if (this.initalSorting) { - this._sortColumn = this.initalSorting.column; - this._sortDirection = this.initalSorting.direction; + if (this.initialSorting) { + this._sortColumn = this.initialSorting.column; + this._sortDirection = this.initialSorting.direction; } } diff --git a/src/panels/config/devices/ha-config-devices-dashboard.ts b/src/panels/config/devices/ha-config-devices-dashboard.ts index 5cfc42149254..53d4425dcec0 100644 --- a/src/panels/config/devices/ha-config-devices-dashboard.ts +++ b/src/panels/config/devices/ha-config-devices-dashboard.ts @@ -671,7 +671,7 @@ export class HaConfigDeviceDashboard extends SubscribeMixin(LitElement) { ) ).length} .initialGroupColumn=${this._activeGrouping} - .initalSorting=${this._activeSorting} + .initialSorting=${this._activeSorting} @clear-filter=${this._clearFilter} @search-changed=${this._handleSearchChange} @sorting-changed=${this._handleSortingChanged}