diff --git a/src/components/PublicationUploader/PublicationUploader.tsx b/src/components/PublicationUploader/PublicationUploader.tsx index 8c970a69..93338c3c 100644 --- a/src/components/PublicationUploader/PublicationUploader.tsx +++ b/src/components/PublicationUploader/PublicationUploader.tsx @@ -21,7 +21,7 @@ export const PublicationUploader: FC = ({semesterId, o const refetch = () => queryClient.invalidateQueries({queryKey: ['competition', 'semester', semesterId]}) const appendFormData = (formData: FormData) => { - formData.append('publication_type', PublicationTypes.LEAFLET.name) + formData.append('publication_type', PublicationTypes.LEAFLET.id.toString()) formData.append('event', semesterId.toString()) formData.append('order', order.toString()) } @@ -37,7 +37,7 @@ export const PublicationUploader: FC = ({semesterId, o )}