master #121

Merged
joseph merged 6 commits from master into dev 2025-03-14 19:36:11 +11:00
1 changed files with 5 additions and 1 deletions
Showing only changes of commit d803d69b72 - Show all commits

View File

@ -71,7 +71,11 @@ const ModalFileDocument = ({
>
<Group justify="flex-end" mb={'md'}>
<a
href={`${import.meta.env.VITE_BACKEND_URL}${selectDataRow.uri}`}
href={`${import.meta.env.VITE_BACKEND_URL}${
import.meta.env.VITE_BACKEND_URL?.includes('localhost')
? 'image/'
: ''
}${selectDataRow.uri}`}
download="Document Download"
target={
getFileType(selectDataRow?.uri) === 'pdf' ? '_blank' : '_self'