Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Apr 22, 2024
1 parent a428ad0 commit 45dce18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/layouts/hass-tabs-subpage-data-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down Expand Up @@ -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;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/panels/config/devices/ha-config-devices-dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 45dce18

Please sign in to comment.