BugFix: attachment URL fixed
This commit is contained in:
@@ -65,7 +65,7 @@ export const BillEditForm:FC<BillEditFormProps> = ({ locationID, bill }) => {
|
||||
// <textarea className="textarea textarea-bordered my-1 w-full max-w-sm block" placeholder="Opis" value="Pričuva, Voda, Smeće"></textarea>
|
||||
|
||||
attachment ?
|
||||
<a href={`/attachment/${locationID}-${billID}/${attachment.fileName}`} target="_blank" className='text-center block max-w-[24em] text-nowrap truncate inline-block mt-4'>
|
||||
<a href={`/attachment/${locationID}-${billID}/}`} target="_blank" className='text-center block max-w-[24em] text-nowrap truncate inline-block mt-4'>
|
||||
<DocumentIcon className="h-[1em] w-[1em] text-2xl inline-block mr-1" />
|
||||
{decodeURIComponent(attachment.fileName)}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user