From 9a6e9a542f76e71a24b1e25933a60f00b5f3c7cd Mon Sep 17 00:00:00 2001 From: David Lyon Date: Wed, 27 Mar 2024 10:34:10 -0700 Subject: [PATCH] Special case GTDB kbase_id column so it doesnt render bad links --- src/features/collections/data_products/GenomeAttribs.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/features/collections/data_products/GenomeAttribs.tsx b/src/features/collections/data_products/GenomeAttribs.tsx index b41fd947..cb2ad404 100644 --- a/src/features/collections/data_products/GenomeAttribs.tsx +++ b/src/features/collections/data_products/GenomeAttribs.tsx @@ -205,6 +205,8 @@ export const GenomeAttribs: FC<{ render: field.name === 'kbase_id' ? (cell) => { + // GTBD IDs are not (yet?) UPAs + if (collection_id === 'GTDB') return cell.getValue(); const upa = (cell.getValue() as string).replace(/_/g, '/'); return (