Skip to content
Snippets Groups Projects
Commit 2c46bb19 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

use annotation link (instead of associated article which might not exist)

parent 3c109b0f
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!206Resolve "Reference links are not working"
Pipeline #92349 passed
......@@ -105,7 +105,7 @@ export const BioEntitiesPinsListItem = ({
return (
<li key={reference.id} className="my-2 px-2">
<a
href={reference.article?.link}
href={reference.link ? reference.link : undefined}
target="_blank"
className="cursor-pointer text-primary-500 underline"
>
......
......@@ -116,7 +116,7 @@ export const PinsListItem = ({
// reference.id is almost always = 0
<li key={`${reference.id}-${reference.resource}`} className="my-2 px-2">
<a
href={reference.article?.link}
href={reference.link ? reference.link : undefined}
target="_blank"
className="cursor-pointer text-primary-500 underline"
>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment