mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 14:37:06 +01:00
Fix list view breaking on undefined rating value (#32)
This commit is contained in:
parent
a9cfcaeda6
commit
7ae3d9d99a
@ -293,7 +293,7 @@ const tableColumns: { [key: string]: ColDef } = {
|
||||
width: 50,
|
||||
},
|
||||
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,
|
||||
colId: TableColumn.USER_RATING,
|
||||
field: 'userRating',
|
||||
|
Loading…
Reference in New Issue
Block a user