DataviewJS TaskList without "Project"

I have a code like this:

dv.header(2, 'Project');

dv.taskList(dv.pages().file.tasks 
  .where(t => !t.completed)
  .where(t => t.text.includes("[[Project]]")), false )

with this result:
10598_Obsidian_NvuTzksz

Could you please tell me how to remove Project from each task?
I want it to show without project, like this:
10599_Obsidian_38NtfC7L

THANK YOU VERY MUCH!

If you define .visual it’ll replace the .text variant, so one way to do this would be something like:

```dataviewjs
dv.header(2, 'Project');

dv.taskList(dv.pages().file.tasks 
  .where(t => !t.completed)
  .where(t => t.text.includes("[[Project]]"))
  .mutate(t => t.visual = t.text.replace("[[Project]]", "") )
  , false )
```
2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.