mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Fix studio editing (#1668)
This commit is contained in:
@@ -30,7 +30,7 @@ import {
|
||||
ImageInput,
|
||||
} from "src/components/Shared";
|
||||
import { useToast } from "src/hooks";
|
||||
import { ImageUtils, FormUtils, TextUtils } from "src/utils";
|
||||
import { ImageUtils, FormUtils, TextUtils, getStashIDs } from "src/utils";
|
||||
import { MovieSelect } from "src/components/Shared/Select";
|
||||
import { useFormik } from "formik";
|
||||
import { Prompt } from "react-router";
|
||||
@@ -110,10 +110,7 @@ export const SceneEditPanel: React.FC<IProps> = ({
|
||||
}),
|
||||
tag_ids: (scene.tags ?? []).map((t) => t.id),
|
||||
cover_image: undefined,
|
||||
stash_ids: (scene.stash_ids ?? []).map((s) => ({
|
||||
stash_id: s.stash_id,
|
||||
endpoint: s.endpoint,
|
||||
})),
|
||||
stash_ids: getStashIDs(scene.stash_ids),
|
||||
};
|
||||
|
||||
type InputValues = typeof initialValues;
|
||||
|
||||
Reference in New Issue
Block a user