Browse Source

fix null bitrate column

master
jeffvli 3 years ago
parent
commit
1eb37b086a
  1. 10
      src/components/viewtypes/ListViewTable.tsx

10
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'
: ''}
</div>
</TableCellWrapper>
);

Loading…
Cancel
Save