Skip to content

Commit 42db6e7

Browse files
author
Çağatay Çivici
committed
1 parent ddadea1 commit 42db6e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/datatable/datatable.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,8 @@ export class DataTable implements AfterViewChecked,AfterViewInit,AfterContentIni
666666
if(this.stopSortPropagation) {
667667
this.stopSortPropagation = false;
668668
}
669-
else if(!this.lazy && (this.sortField||this.multiSortMeta)) {
670-
if(!this.sortColumn) {
669+
else if(!this.lazy && (this.sortField||this.multiSortMeta)) {
670+
if(!this.sortColumn && this.columns) {
671671
this.sortColumn = this.columns.find(col => col.field === this.sortField && col.sortable === 'custom');
672672
}
673673

0 commit comments

Comments
 (0)