diff --git a/web/components/issue-layouts/display-filters/extra-options.tsx b/web/components/issue-layouts/display-filters/extra-options.tsx index 15450a24f..11ef74a94 100644 --- a/web/components/issue-layouts/display-filters/extra-options.tsx +++ b/web/components/issue-layouts/display-filters/extra-options.tsx @@ -7,6 +7,8 @@ import { observer } from "mobx-react-lite"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; import { RootStore } from "store/root"; +// default data +import { issueFilterVisibilityData } from "store/issue-views/issue_data"; export const FilterExtraOptions = observer(() => { const store: RootStore = useMobxStore(); @@ -18,6 +20,13 @@ export const FilterExtraOptions = observer(() => { issueFilterStore.handleUserFilter("display_filters", key, !value); }; + const handleExtraOptionsSectionVisibility = (key: string) => + issueFilterStore?.issueView && + issueFilterStore?.issueLayout && + issueFilterVisibilityData[ + issueFilterStore?.issueView === "my_issues" ? "my_issues" : "others" + ]?.extra_options?.[issueFilterStore?.issueLayout].values?.includes(key); + return (