Skip to content

Commit

Permalink
fix(slate-metadata): link to image download showing up due to data.ad…
Browse files Browse the repository at this point in the history
…dLinkToDownload being undefined #47 from eea/259256-link_bug
  • Loading branch information
ichim-david authored Jul 29, 2024
2 parents d493314 + eb35d51 commit 231c7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/Mentions/render.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const MentionElement = ({
to={`${flattenToAppURL(metadata['@id'])}/@@download/image/${
metadata.id
}`}
condition={data.addLinkToDownload !== false}
condition={!!data.addLinkToDownload}
>
<Widget value={output} className={className}>
{(child) => wrapInlineMarkupText(children, (_c) => child)}
Expand Down

0 comments on commit 231c7aa

Please sign in to comment.