fix (org): task list tags

This commit is contained in:
Mickael Kerjean
2020-01-03 01:00:02 +11:00
parent a3f7d766f3
commit 38a2afad7d

View File

@ -130,7 +130,9 @@ export function parse(content){
if(data = parse_header(text, i)){
tags = tags.filter(e => e.level < data.level);
tags.push({ level: data.level, tags: data.tags });
data.tags = Array.concat.apply(null, tags.map((e) => e.tags));
data.tags = tags.reduce((acc, el) => {
return acc.concat(el.tags);
}, []);
if(todo.header){
todos.push(todo);