From 7ae3d9d99a9baa97c9ef5e3b3a0a3d86460c1f75 Mon Sep 17 00:00:00 2001 From: Jeff <42182408+jeffvli@users.noreply.github.com> Date: Sat, 25 Feb 2023 16:35:19 -0800 Subject: [PATCH] Fix list view breaking on undefined rating value (#32) --- src/renderer/components/virtual-table/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/virtual-table/index.tsx b/src/renderer/components/virtual-table/index.tsx index dbae4205..e85210d8 100644 --- a/src/renderer/components/virtual-table/index.tsx +++ b/src/renderer/components/virtual-table/index.tsx @@ -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',