Skip to content

Commit

Permalink
Special case GTDB kbase_id column so it doesnt render bad links
Browse files Browse the repository at this point in the history
  • Loading branch information
dauglyon committed Mar 27, 2024
1 parent 3c9ceba commit 9a6e9a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/features/collections/data_products/GenomeAttribs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Link
Expand Down

0 comments on commit 9a6e9a5

Please sign in to comment.