diff --git a/client/src/pages/admin.tsx b/client/src/pages/admin.tsx index f54a001..21d18ac 100644 --- a/client/src/pages/admin.tsx +++ b/client/src/pages/admin.tsx @@ -337,10 +337,13 @@ function EditVideoDialog({ // Save without closing modal for AI generation try { - await apiRequest("PATCH", `/api/admin/videos/${video.id}`, processedData); + console.log("About to save AI data:", JSON.stringify(processedData, null, 2)); + const response = await apiRequest("PATCH", `/api/admin/videos/${video.id}`, processedData); + console.log("AI save response:", response.status); // Refresh cache after save await queryClient.invalidateQueries({ queryKey: ["/api/admin/videos"] }); await queryClient.refetchQueries({ queryKey: ["/api/admin/videos"] }); + console.log("Cache refreshed after AI save"); } catch (error) { console.error("Failed to save AI description:", error); }