From 443528ca47c9fd546087876686416fff5471b004 Mon Sep 17 00:00:00 2001 From: Bob Date: Mon, 24 Jun 2024 23:11:47 +0100 Subject: [PATCH] removed full_id column (from display only) and added Accession aka sequence_link column and enabled the link --- .../webapp/wdkCustomization/js/client/records/Sequences.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/sites/ortho-site/webapp/wdkCustomization/js/client/records/Sequences.tsx b/packages/sites/ortho-site/webapp/wdkCustomization/js/client/records/Sequences.tsx index c64ba21466..a782ad51a8 100644 --- a/packages/sites/ortho-site/webapp/wdkCustomization/js/client/records/Sequences.tsx +++ b/packages/sites/ortho-site/webapp/wdkCustomization/js/client/records/Sequences.tsx @@ -62,13 +62,14 @@ export function RecordTable_Sequences( const [highlightedNodes, setHighlightedNodes] = useState([]); const mesaColumns: MesaColumn[] = props.table.attributes - .map(({ name, displayName }) => ({ + .map(({ name, displayName, type }) => ({ key: name, name: displayName, + type: type === 'link' ? 'wdkLink' : type, })) // and remove a raw HTML checkbox field - we'll use Mesa's built-in checkboxes for this // and an object-laden 'sequence_link' field - the ID seems to be replicated in the full_id field - .filter(({ key }) => key !== 'clustalInput' && key !== 'sequence_link'); + .filter(({ key }) => key !== 'clustalInput' && key !== 'full_id'); const mesaRows = props.value; const pfamRows = props.record.tables['PFams'];