From 43d2848c12d2de485cb97153c711a91c2058b9ad Mon Sep 17 00:00:00 2001 From: Alex Collins Date: Mon, 8 Jul 2019 14:07:20 -0700 Subject: [PATCH] Fixes bug where repo was not displayed in UI. Closes #1883 (#1892) --- ui/src/app/shared/components/repo.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/app/shared/components/repo.tsx b/ui/src/app/shared/components/repo.tsx index 165b97a050..b2c9af9dbd 100644 --- a/ui/src/app/shared/components/repo.tsx +++ b/ui/src/app/shared/components/repo.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import {repoUrl} from './urls'; export const Repo = ({url, children}: { url: string, children?: React.ReactNode }) => { - url = repoUrl(url); + const href = repoUrl(url); const content = children || url; - return url !== null ? {content} : {content}; + return href !== null ? {content} : {content}; };