forked from github/plane
[WEB-1271] fix: show only joined projects in the filters list (#4417)
This commit is contained in:
parent
3723ece8d5
commit
198a2a63f2
@ -23,9 +23,9 @@ export const FilterProjects: React.FC<Props> = 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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user