Fix list view breaking on undefined rating value (#32)
This commit is contained in:
parent
a9cfcaeda6
commit
7ae3d9d99a
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ const tableColumns: { [key: string]: ColDef } = {
|
||||||
width: 50,
|
width: 50,
|
||||||
},
|
},
|
||||||
userRating: {
|
userRating: {
|
||||||
cellClass: (params) => (params.value.userRating ? 'visible ag-cell-rating' : 'ag-cell-rating'),
|
cellClass: (params) => (params.value?.userRating ? 'visible ag-cell-rating' : 'ag-cell-rating'),
|
||||||
cellRenderer: RatingCell,
|
cellRenderer: RatingCell,
|
||||||
colId: TableColumn.USER_RATING,
|
colId: TableColumn.USER_RATING,
|
||||||
field: 'userRating',
|
field: 'userRating',
|
||||||
|
|
Reference in a new issue