From 38a2afad7dc4dc23770d4aaad49dc1abfcab24fd Mon Sep 17 00:00:00 2001 From: Mickael Kerjean Date: Fri, 3 Jan 2020 01:00:02 +1100 Subject: [PATCH] fix (org): task list tags --- client/helpers/org.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/helpers/org.js b/client/helpers/org.js index 72cc2006..13901d68 100644 --- a/client/helpers/org.js +++ b/client/helpers/org.js @@ -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);