Skip to content

Commit 1f11a6e

Browse files
vsdudakovCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 05bc5b1 commit 1f11a6e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • frontend/src/components/upload-image

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ export const UploadImage: React.FC<IUploadImage> = ({
8080

8181
const action =
8282
model && fieldName
83-
? `${serverUrl}/upload-file/${model}/${fieldName}${id ? `?id=${id}` : ""}`
83+
? `${serverUrl}/upload-file/${model}/${fieldName}${
84+
id ? `?${new URLSearchParams({ id }).toString()}` : ""
85+
}`
8486
: undefined;
8587

8688
return (

0 commit comments

Comments
 (0)