Skip to content

Commit

Permalink
Merge pull request #877 from terrestris/fix-id-type
Browse files Browse the repository at this point in the history
Pass image ID as number to GraphQL endpoint
  • Loading branch information
dnlkoch authored Nov 7, 2024
2 parents 50064f7 + 9a62b49 commit de415eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Component/ImageFile/ImageFileForm/ImageFileForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const ImageFileForm: React.FC<ImageFileRootProps> = () => {
}
}`,
variables: {
id: imageFileId
id: parseInt(imageFileId, 10)
}
});
setFile(result.imageFileById);
Expand Down

0 comments on commit de415eb

Please sign in to comment.