Old Table: Table is not rendering when col property is undefined (#44129)

This commit is contained in:
Maria Alexandra
2022-01-25 14:22:57 +01:00
committed by GitHub
parent 24efb42f19
commit 58b8d84085
2 changed files with 30 additions and 1 deletions

View File

@@ -41,7 +41,8 @@ export default class TableModel implements TableData {
}
sort(options: { col: number; desc: boolean }) {
if (options.col === null || this.columns.length <= options.col) {
// Since 8.3.0 col property can be also undefined, https://github.com/grafana/grafana/issues/44127
if (options.col === null || options.col === undefined || this.columns.length <= options.col) {
return;
}