From 198a2a63f24e46728dfd98175d54b9c33b71ee6b Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Mon, 13 May 2024 12:06:34 +0530 Subject: [PATCH] [WEB-1271] fix: show only joined projects in the filters list (#4417) --- .../issues/issue-layouts/filters/header/filters/project.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/components/issues/issue-layouts/filters/header/filters/project.tsx b/web/components/issues/issue-layouts/filters/header/filters/project.tsx index b3924cd34..26b0bb46b 100644 --- a/web/components/issues/issue-layouts/filters/header/filters/project.tsx +++ b/web/components/issues/issue-layouts/filters/header/filters/project.tsx @@ -23,9 +23,9 @@ export const FilterProjects: React.FC = observer((props) => { const [itemsToRender, setItemsToRender] = useState(5); const [previewEnabled, setPreviewEnabled] = useState(true); // store - const { getProjectById, workspaceProjectIds } = useProject(); + const { getProjectById, joinedProjectIds } = useProject(); // derived values - const projects = workspaceProjectIds?.map((projectId) => getProjectById(projectId)!) ?? null; + const projects = joinedProjectIds?.map((projectId) => getProjectById(projectId)!) ?? null; const appliedFiltersCount = appliedFilters?.length ?? 0; const sortedOptions = useMemo(() => {