diff --git a/web/src/screens/filters/sections/Advanced.tsx b/web/src/screens/filters/sections/Advanced.tsx index 91a277a..4961017 100644 --- a/web/src/screens/filters/sections/Advanced.tsx +++ b/web/src/screens/filters/sections/Advanced.tsx @@ -15,11 +15,12 @@ import { classNames } from "@utils"; // }; const Releases = () => { + const { values } = useFormikContext(); return ( @@ -97,11 +98,12 @@ const Releases = () => { } const Groups = () => { - // const { values } = useFormikContext(); + + const { values } = useFormikContext(); return ( @@ -134,11 +136,12 @@ const Groups = () => { } const Categories = () => { - // const { values } = useFormikContext(); + + const { values } = useFormikContext(); return ( 0 || values.except_categories !== ""} + defaultOpen={values.match_categories !== undefined || values.except_categories !== undefined} title="Categories" subtitle="Match or exclude categories (if announced)" > @@ -171,11 +174,12 @@ const Categories = () => { } const Tags = () => { - // const { values } = useFormikContext(); + + const { values } = useFormikContext(); return ( @@ -238,11 +242,12 @@ const Tags = () => { } const Uploaders = () => { - // const { values } = useFormikContext(); + + const { values } = useFormikContext(); return ( @@ -276,11 +281,12 @@ const Uploaders = () => { } const Language = () => { - // const { values } = useFormikContext(); + + const { values } = useFormikContext(); return ( 0) || (values.except_language && values.except_language.length > 0)} + defaultOpen={values.match_language?.length > 0 || values.except_language?.length > 0} title="Language" subtitle="Match or ignore languages (if announced)" > @@ -301,11 +307,12 @@ const Language = () => { } const Origins = () => { - // const { values } = useFormikContext(); + + const { values } = useFormikContext(); return ( 0 || values.except_origins && values.except_origins.length > 0)} + defaultOpen={values.origins?.length > 0 || values.except_origins?.length > 0} title="Origins" subtitle="Match Internals, Scene, P2P, etc. (if announced)" > @@ -326,11 +333,12 @@ const Origins = () => { } const Freeleech = () => { + const { values } = useFormikContext(); return ( @@ -382,10 +390,20 @@ const Freeleech = () => { } const FeedSpecific = () => { + const { values } = useFormikContext(); + return ( These options are only for Feeds such as RSS, Torznab and Newznab @@ -479,11 +497,12 @@ const FeedSpecific = () => { ); } const RawReleaseTags = () => { + const { values } = useFormikContext(); return (