Skip to content

Commit dd4c0b6

Browse files
fix: Added the fileUrl (#1011)
2 parents 73101b8 + 0c38f87 commit dd4c0b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/widget/src/util/helpers/common.helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ function fetchFile(urlToFetch: string, name: string) {
5151
export function buildFullFileUrl(signedUrl: string, queryVariables: string[], baseIndex: number) {
5252
const filePath = queryVariables[baseIndex];
5353
const url = new URL(signedUrl);
54+
const fileUrl = `${url.origin}${url.pathname}${filePath}${url.search}`;
5455

55-
return `${url.origin}${url.pathname}${filePath}${url.search}`;
56+
return fileUrl;
5657
}
5758

5859
export function downloadFileFromURL(url: string, name: string) {

0 commit comments

Comments
 (0)