Fix scene editing of scenes with stash_ids (#1467)

This commit is contained in:
InfiniteTF
2021-06-03 02:48:58 +02:00
committed by GitHub
parent 1bb5de12e3
commit c98cc73f33

View File

@@ -108,7 +108,10 @@ export const SceneEditPanel: React.FC<IProps> = ({
}),
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;