Skip to content

Commit

Permalink
fix(core): tweak setupColumnSort() to fix exception with hidden col (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored May 7, 2024
1 parent 2ef562d commit 94b836a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/core/slickGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ export class SlickGrid<TData = any, C extends Column<TData> = Column<TData>, O e
previousSortColumns,
sortCols: this.sortColumns.map((col) => {
const tempCol = this.columns[this.getColumnIndex(col.columnId)];
return !tempCol ? null : { columnId: tempCol.id, sortCol: tempCol, sortAsc: col.sortAsc };
return (!tempCol || tempCol.hidden) ? null : { columnId: tempCol.id, sortCol: tempCol, sortAsc: col.sortAsc };
}).filter((el) => el)
};
}
Expand Down

0 comments on commit 94b836a

Please sign in to comment.