Fixed hiding of github link actions when location isn't github

This commit is contained in:
Sebastian Qvarfordt
2020-06-03 10:34:53 +02:00
parent a2a3d7ea2b
commit f7d232c1a8
@@ -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,
}),
];