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 [itemsToRender, setItemsToRender] = useState(5);
|
||||||
const [previewEnabled, setPreviewEnabled] = useState(true);
|
const [previewEnabled, setPreviewEnabled] = useState(true);
|
||||||
// store
|
// store
|
||||||
const { getProjectById, workspaceProjectIds } = useProject();
|
const { getProjectById, joinedProjectIds } = useProject();
|
||||||
// derived values
|
// derived values
|
||||||
const projects = workspaceProjectIds?.map((projectId) => getProjectById(projectId)!) ?? null;
|
const projects = joinedProjectIds?.map((projectId) => getProjectById(projectId)!) ?? null;
|
||||||
const appliedFiltersCount = appliedFilters?.length ?? 0;
|
const appliedFiltersCount = appliedFilters?.length ?? 0;
|
||||||
|
|
||||||
const sortedOptions = useMemo(() => {
|
const sortedOptions = useMemo(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user