Skip to content

Commit

Permalink
fix: tweak setupColumnSort() to fix exception when col no longer exis…
Browse files Browse the repository at this point in the history
…ts (#1477)
  • Loading branch information
ghiscoding committed Apr 25, 2024
1 parent 97da209 commit 094d760
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/common/src/core/slickGrid.ts
Expand Up @@ -1784,8 +1784,9 @@ export class SlickGrid<TData = any, C extends Column<TData> = Column<TData>, O e
multiColumnSort: true,
previousSortColumns,
sortCols: this.sortColumns.map((col) => {
return { columnId: this.columns[this.getColumnIndex(col.columnId)].id, sortCol: this.columns[this.getColumnIndex(col.columnId)], sortAsc: col.sortAsc };
})
const tempCol = this.columns[this.getColumnIndex(col.columnId)];
return !tempCol ? null : { columnId: tempCol.id, sortCol: tempCol, sortAsc: col.sortAsc };
}).filter((el) => el)
};
}

Expand Down

0 comments on commit 094d760

Please sign in to comment.