Skip to content

Commit dd9c4a7

Browse files
vsdudakovCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
1 parent 5170709 commit dd9c4a7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

frontend/src/components/upload-file/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ export const UploadFile: React.FC<IUploadFileProps> = ({
7878

7979
const action =
8080
model && fieldName
81-
? `${serverUrl}/upload-file/${model}/${fieldName}${id ? `?id=${id}` : ""}`
81+
? `${serverUrl}/upload-file/${model}/${fieldName}${
82+
id ? `?${new URLSearchParams({ id }).toString()}` : ""
83+
}`
8284
: undefined;
8385

8486
return (

0 commit comments

Comments
 (0)