Skip to content

Commit 128418b

Browse files
committed
Fixed API URL in handleOpen as well
1 parent bbf1034 commit 128418b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/pages/Files/ListOfFiles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const ListOfFiles: React.FC<{ showTable?: boolean }> = ({
8282
const handleOpen = async (guid: string) => {
8383
try {
8484
setOpening(guid);
85-
const { data } = await publicApi.get(`/v1/api/uploadFile/${guid}`, { responseType: 'arraybuffer' });
85+
const { data } = await publicApi.get(`/api/v1/api/uploadFile/${guid}`, { responseType: 'arraybuffer' });
8686

8787
const file = new Blob([data], { type: 'application/pdf' });
8888
const fileURL = window.URL.createObjectURL(file);

0 commit comments

Comments
 (0)