Skip to content
Snippets Groups Projects
Commit 5812d49d authored by Esko Ikkala's avatar Esko Ikkala
Browse files

Fix part ids

parent 8780add8
No related branches found
No related tags found
No related merge requests found
......@@ -68,8 +68,6 @@ const tableStyles = {
}
};
const columnWidth = 200;
const calculateRowStyle = ({ index }) => {
if (index < 0) {
return tableStyles.headerRow;
......@@ -98,9 +96,10 @@ class VirtualizedTable extends React.PureComponent {
id = cellData.replace('orphan_', '');
sdbmUrl = 'https://sdbm.library.upenn.edu/entries/' + id;
} else {
id = cellData.replace('part_', '');
id = cellData;
sdbmUrl = rowData.manuscriptRecord;
}
id = id.replace('part_', '');
const idLink = <a target='_blank' rel='noopener noreferrer' href={sdbmUrl}>{id}</a>;
return (
<div key={cellData}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment