Browse Source

Fix empty genre/artist column

master
jeffvli 3 years ago
committed by Jeff
parent
commit
745c0ea6a4
  1. 4
      src/components/viewtypes/ListViewTable.tsx

4
src/components/viewtypes/ListViewTable.tsx

@ -901,7 +901,7 @@ const ListViewTable = ({
> >
{column.dataKey.match(/artist|genre/) ? ( {column.dataKey.match(/artist|genre/) ? (
<> <>
{rowData[column.dataKey] && ( {rowData[column.dataKey] ? (
<CustomTooltip text={rowData[column.dataKey][0]?.title}> <CustomTooltip text={rowData[column.dataKey][0]?.title}>
<RsuiteLinkButton <RsuiteLinkButton
appearance="link" appearance="link"
@ -953,6 +953,8 @@ const ListViewTable = ({
{rowData[column.dataKey][0]?.title} {rowData[column.dataKey][0]?.title}
</RsuiteLinkButton> </RsuiteLinkButton>
</CustomTooltip> </CustomTooltip>
) : (
<span>&#8203;</span>
)} )}
</> </>
) : column.dataKey === 'album' ? ( ) : column.dataKey === 'album' ? (

Loading…
Cancel
Save