diff --git a/attached_assets/image_1754556267832.png b/attached_assets/image_1754556267832.png new file mode 100644 index 0000000..21b9db2 Binary files /dev/null and b/attached_assets/image_1754556267832.png differ diff --git a/client/src/components/video-edit-modal.tsx b/client/src/components/video-edit-modal.tsx index 5937416..4597d6e 100644 --- a/client/src/components/video-edit-modal.tsx +++ b/client/src/components/video-edit-modal.tsx @@ -30,10 +30,8 @@ export default function VideoEditModal({ video, isOpen, onClose }: VideoEditModa const updateVideoMutation = useMutation({ mutationFn: async (updates: UpdateVideo) => { - return apiRequest(`/api/videos/${video.id}`, { - method: "PATCH", - body: updates - }); + const response = await apiRequest("PATCH", `/api/videos/${video.id}`, updates); + return response.json(); }, onSuccess: () => { toast({ title: "Video uspešno posodobljen!" });