Fix name sanitization to be based on specific tags instead of on input tag filtering

This commit is contained in:
Campbell Alden 2023-07-24 13:56:56 +09:00
parent e6ffc866c4
commit d232763850
8 changed files with 53 additions and 12 deletions

View file

@ -15,7 +15,13 @@ today.forEach(todo => {
notes: todo.notes() || null,
status: todo.status(),
completion_date: todo.completionDate(),
project: proj && { id: proj.id(), title: proj.name(), status: proj.status(), notes: proj.notes() },
project: proj && {
id: proj.id(),
title: proj.name(),
status: proj.status(),
notes: proj.notes(),
tags: proj.tagNames().split(', '),
},
area: area && { id: area.id(), title: area.name() },
tags: [...tags, ...todo.tagNames().split(', ')].filter(t => t),
});