mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Fix incorrect URL field in studio exclusions (#5743)
This commit is contained in:
@@ -81,4 +81,4 @@ export const PERFORMER_FIELDS = [
|
|||||||
"details",
|
"details",
|
||||||
];
|
];
|
||||||
|
|
||||||
export const STUDIO_FIELDS = ["name", "image", "urls", "parent_studio"];
|
export const STUDIO_FIELDS = ["name", "image", "url", "parent_studio"];
|
||||||
|
|||||||
@@ -20,7 +20,10 @@ const StudioFieldSelect: React.FC<IProps> = ({
|
|||||||
}) => {
|
}) => {
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
const [excluded, setExcluded] = useState<Record<string, boolean>>(
|
const [excluded, setExcluded] = useState<Record<string, boolean>>(
|
||||||
excludedFields.reduce((dict, field) => ({ ...dict, [field]: true }), {})
|
// filter out fields that aren't in STUDIO_FIELDS
|
||||||
|
excludedFields
|
||||||
|
.filter((field) => STUDIO_FIELDS.includes(field))
|
||||||
|
.reduce((dict, field) => ({ ...dict, [field]: true }), {})
|
||||||
);
|
);
|
||||||
|
|
||||||
const toggleField = (field: string) =>
|
const toggleField = (field: string) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user