update download link
This commit is contained in:
		
							parent
							
								
									d1f889c996
								
							
						
					
					
						commit
						d803d69b72
					
				| 
						 | 
					@ -71,7 +71,11 @@ const ModalFileDocument = ({
 | 
				
			||||||
    >
 | 
					    >
 | 
				
			||||||
      <Group justify="flex-end" mb={'md'}>
 | 
					      <Group justify="flex-end" mb={'md'}>
 | 
				
			||||||
        <a
 | 
					        <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"
 | 
					          download="Document Download"
 | 
				
			||||||
          target={
 | 
					          target={
 | 
				
			||||||
            getFileType(selectDataRow?.uri) === 'pdf' ? '_blank' : '_self'
 | 
					            getFileType(selectDataRow?.uri) === 'pdf' ? '_blank' : '_self'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue