From 5fcef33fd679744780d566427861bb5a67a256e9 Mon Sep 17 00:00:00 2001 From: hunterckx <118154470+hunterckx@users.noreply.github.com> Date: Tue, 3 Sep 2024 14:31:02 -0700 Subject: [PATCH] fix: remove unnecessary check for missing browser url (#17) --- .../common/viewModelBuilders.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/data-catalog/app/viewModelBuilders/catalog/brc-analytics-catalog/common/viewModelBuilders.ts b/data-catalog/app/viewModelBuilders/catalog/brc-analytics-catalog/common/viewModelBuilders.ts index 0ce8d7f..730f465 100644 --- a/data-catalog/app/viewModelBuilders/catalog/brc-analytics-catalog/common/viewModelBuilders.ts +++ b/data-catalog/app/viewModelBuilders/catalog/brc-analytics-catalog/common/viewModelBuilders.ts @@ -87,15 +87,10 @@ export const buildSupercontigs = ( export const buildUcscBrowserUrl = ( genome: BRCDataCatalogGenome ): React.ComponentProps => { - return genome.ucscBrowserUrl - ? { - label: "UCSC Browser", - url: genome.ucscBrowserUrl, - } - : { - label: "Unspecified", - url: "", - }; + return { + label: "UCSC Browser", + url: genome.ucscBrowserUrl, + }; }; /**