From c98cc73f3392487a3445d484c1f11abceaf77987 Mon Sep 17 00:00:00 2001 From: InfiniteTF Date: Thu, 3 Jun 2021 02:48:58 +0200 Subject: [PATCH] Fix scene editing of scenes with stash_ids (#1467) --- .../src/components/Scenes/SceneDetails/SceneEditPanel.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/v2.5/src/components/Scenes/SceneDetails/SceneEditPanel.tsx b/ui/v2.5/src/components/Scenes/SceneDetails/SceneEditPanel.tsx index 481e069c5..c48a38d77 100644 --- a/ui/v2.5/src/components/Scenes/SceneDetails/SceneEditPanel.tsx +++ b/ui/v2.5/src/components/Scenes/SceneDetails/SceneEditPanel.tsx @@ -108,7 +108,10 @@ export const SceneEditPanel: React.FC = ({ }), tag_ids: (scene.tags ?? []).map((t) => t.id), cover_image: undefined, - stash_ids: scene.stash_ids ?? undefined, + stash_ids: (scene.stash_ids ?? []).map((s) => ({ + stash_id: s.stash_id, + endpoint: s.endpoint, + })), }; type InputValues = typeof initialValues;