We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d660bc3 + 1f11a6e commit 5170709Copy full SHA for 5170709
1 file changed
frontend/src/components/upload-image/index.tsx
@@ -85,7 +85,9 @@ export const UploadImage: React.FC<IUploadImage> = ({
85
86
const action =
87
model && fieldName
88
- ? `${serverUrl}/upload-file/${model}/${fieldName}${id ? `?id=${id}` : ""}`
+ ? `${serverUrl}/upload-file/${model}/${fieldName}${
89
+ id ? `?${new URLSearchParams({ id }).toString()}` : ""
90
+ }`
91
: undefined;
92
93
return (
0 commit comments