From f7d232c1a8aa4c0b0083be9e4f1d085d4e578b36 Mon Sep 17 00:00:00 2001 From: Sebastian Qvarfordt Date: Wed, 3 Jun 2020 10:34:53 +0200 Subject: [PATCH] Fixed hiding of github link actions when location isn't github --- plugins/catalog/src/components/CatalogPage/CatalogPage.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx index 24337337c9..09688bffb5 100644 --- a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx +++ b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx @@ -86,10 +86,8 @@ const CatalogPage: FC<{}> = () => { if (!rowData || !rowData.location) return; window.open(rowData.location.target, '_blank'); }, - isHidden: - rowData && rowData.location - ? rowData.location.type === 'github' - : false, + hidden: + rowData && rowData.location ? rowData.location.type !== 'github' : true, }), ];