From 1eb37b086afe8ad4af5af53b5f77e6d711a0f9a1 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Mon, 13 Sep 2021 01:35:29 -0700 Subject: [PATCH] fix null bitrate column --- src/components/viewtypes/ListViewTable.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/viewtypes/ListViewTable.tsx b/src/components/viewtypes/ListViewTable.tsx index 49f97e3..fe8968b 100644 --- a/src/components/viewtypes/ListViewTable.tsx +++ b/src/components/viewtypes/ListViewTable.tsx @@ -597,13 +597,15 @@ const ListViewTable = ({ } onChange={(e: any) => handleRating(rowData, e)} /> + ) : column.dataKey === 'bitRate' ? ( + !rowData[column.dataKey] ? ( + 'N/a' + ) : ( + `${rowData[column.dataKey]} kbps` + ) ) : ( rowData[column.dataKey] )} - - {column.dataKey === 'bitRate' && rowData[column.dataKey] - ? ' kbps' - : ''} );