mirror of
https://github.com/taskgenius/taskgenius-plugin.git
synced 2026-07-22 06:40:25 +00:00
fix(filters): properly filter tasks with tgProject in inbox view
- Update inbox filter to use hasProject() function which correctly checks both metadata.project and metadata.tgProject fields - Ensure tasks with any project assignment are excluded from inbox
This commit is contained in:
parent
74e2d74c71
commit
58e53e8a91
1 changed files with 2 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ import {
|
|||
FilterGroup,
|
||||
RootFilterState,
|
||||
} from "../components/task-filter/ViewTaskFilter";
|
||||
import { hasProject } from "./taskUtil";
|
||||
|
||||
// 从ViewTaskFilter.ts导入相关接口
|
||||
|
||||
|
|
@ -707,7 +708,7 @@ export function filterTasks(
|
|||
// Only apply default logic if no rules were defined for this view
|
||||
switch (viewId) {
|
||||
case "inbox":
|
||||
filtered = filtered.filter((task) => !task.metadata.project);
|
||||
filtered = filtered.filter((task) => !hasProject(task));
|
||||
break;
|
||||
case "flagged":
|
||||
filtered = filtered.filter(
|
||||
|
|
|
|||
Loading…
Reference in a new issue