From f6387c1018be451b7f68d702b027e52c72ddde17 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Tue, 21 Mar 2023 12:42:55 +1100 Subject: [PATCH] Fix scene scraping (#3569) --- .../Scenes/SceneDetails/SceneEditPanel.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ui/v2.5/src/components/Scenes/SceneDetails/SceneEditPanel.tsx b/ui/v2.5/src/components/Scenes/SceneDetails/SceneEditPanel.tsx index a36633935..8a3f6a80a 100644 --- a/ui/v2.5/src/components/Scenes/SceneDetails/SceneEditPanel.tsx +++ b/ui/v2.5/src/components/Scenes/SceneDetails/SceneEditPanel.tsx @@ -256,7 +256,6 @@ export const SceneEditPanel: React.FC = ({ } async function onSave(input: InputValues) { - console.log("onSave", input); setIsLoading(true); try { if (!isNew) { @@ -352,7 +351,17 @@ export const SceneEditPanel: React.FC = ({ ) { setIsLoading(true); try { - const result = await queryScrapeSceneQueryFragment(s, fragment); + const input: GQL.ScrapedSceneInput = { + date: fragment.date, + code: fragment.code, + details: fragment.details, + director: fragment.director, + remote_site_id: fragment.remote_site_id, + title: fragment.title, + url: fragment.url, + }; + + const result = await queryScrapeSceneQueryFragment(s, input); if (!result.data || !result.data.scrapeSingleScene?.length) { Toast.success({ content: "No scenes found",