diff --git a/packages/synapse-react-client/src/components/SynapseTable/SynapseTableCell/SynapseTableCell.tsx b/packages/synapse-react-client/src/components/SynapseTable/SynapseTableCell/SynapseTableCell.tsx index 8a35cf8df2..d551245092 100644 --- a/packages/synapse-react-client/src/components/SynapseTable/SynapseTableCell/SynapseTableCell.tsx +++ b/packages/synapse-react-client/src/components/SynapseTable/SynapseTableCell/SynapseTableCell.tsx @@ -42,8 +42,9 @@ export type SynapseTableCellProps = { selectColumns?: SelectColumn[] columnModels?: ColumnModel[] rowData: Row['values'] - rowId?: number | string + rowId?: string rowVersionNumber?: number + isRowEntityColumn?: boolean } function SynapseTableCell(props: SynapseTableCellProps) { @@ -58,13 +59,9 @@ function SynapseTableCell(props: SynapseTableCellProps) { rowData, rowId, rowVersionNumber, + isRowEntityColumn, } = props const entity = useAtomValue(tableQueryEntityAtom) - const rowIdIsString = typeof rowId === 'string' - let rowSynId: string | undefined = undefined - if (rowId !== undefined) { - rowSynId = rowIdIsString ? rowId : `syn${rowId.toString()}` - } if (!columnValue) { return
{NOT_SET_DISPLAY_VALUE}
} @@ -79,7 +76,7 @@ function SynapseTableCell(props: SynapseTableCellProps) { isHeader={false} labelLink={columnLinkConfig} rowData={rowData} - rowId={rowSynId} + rowId={rowId} /> ) } @@ -91,15 +88,15 @@ function SynapseTableCell(props: SynapseTableCellProps) { entity && (isEntityView(entity) || isDataset(entity) || isDatasetCollection(entity)) if ( - (tableRowRepresentsEntity || rowIdIsString) && + (tableRowRepresentsEntity || isRowEntityColumn) && (columnName === 'id' || columnName === 'name') && - rowSynId && + rowId && rowVersionNumber ) { return (