From 8c70bf1ca201acab19f25119282cfc326cd45e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mih=C3=A1lik?= Date: Sat, 14 Dec 2024 15:19:30 +0100 Subject: [PATCH] Use different endpoint to upload publication (#524) --- src/components/PublicationUploader/PublicationUploader.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 )}