From 6dcf5964e05b6954fa6c404c1b23961bd0817965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mih=C3=A1lik?= Date: Sat, 14 Dec 2024 14:23:02 +0100 Subject: [PATCH] Use different endpoint to upload publication --- 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 )}