From 6fefe53b5107d7f76d19a44e50e05abd11d0db52 Mon Sep 17 00:00:00 2001 From: Theo Sanderson Date: Tue, 21 May 2024 20:37:43 +0100 Subject: [PATCH] remove NAs --- website/src/components/SequenceDetailsPage/getTableData.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/website/src/components/SequenceDetailsPage/getTableData.ts b/website/src/components/SequenceDetailsPage/getTableData.ts index f0ea5c662..a93c43f41 100644 --- a/website/src/components/SequenceDetailsPage/getTableData.ts +++ b/website/src/components/SequenceDetailsPage/getTableData.ts @@ -160,6 +160,7 @@ function toTableData(config: Schema) { }): TableDataEntry[] => { const data: TableDataEntry[] = config.metadata .filter((metadata) => metadata.hideOnSequenceDetailsPage !== true) + .filter((metadata) => details[metadata.name] !== null && metadata.name in details) .map((metadata) => ({ label: metadata.displayName ?? sentenceCase(metadata.name), name: metadata.name,