fix filterlink logic for entry / exit

This commit is contained in:
Francis Cao 2024-06-14 13:06:32 -07:00
parent 8493db1402
commit dd47ca9e33

View File

@ -45,11 +45,13 @@ export function PagesTable({ allowFilter, ...props }: PagesTableProps) {
const renderLink = ({ x }) => {
return (
<FilterLink
id={view}
id={view === 'entry' || view === 'exit' ? 'url' : view}
value={x}
label={!x && formatMessage(labels.none)}
externalUrl={
view === 'url' ? `${domain.startsWith('http') ? domain : `https://${domain}`}${x}` : null
view !== 'title'
? `${domain.startsWith('http') ? domain : `https://${domain}`}${x}`
: null
}
/>
);