Skip to content

Commit

Permalink
fix: don't execute sortInternalRows if externalSorting is true (#16)
Browse files Browse the repository at this point in the history
See swimlane#1975

Co-authored-by: Gendy <[email protected]>
  • Loading branch information
dr-itz and Gendy authored Sep 29, 2021
1 parent 7719f86 commit 5d874aa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,9 @@ export class DatatableComponent implements OnInit, DoCheck, AfterViewInit {
this._internalColumns = translateTemplates(arr);
setColumnDefaults(this._internalColumns);
this.recalculateColumns();
this.sortInternalRows();
if (!this.externalSorting) {
this.sortInternalRows();
}
this.cd.markForCheck();
}
}
Expand Down

0 comments on commit 5d874aa

Please sign in to comment.