Commit 553dcd20 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent 6d0e4852
......@@ -59,7 +59,9 @@
<a
href={document?.metadata?.file_id
? `/api/v1/files/${document?.metadata?.file_id}/content`
: document.source.name}
: document.source.name.includes('http')
? document.source.name
: `#`}
target="_blank"
>
{document?.metadata?.name ?? document.source.name}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment