remove explicit ID from events in timemap setup

This commit is contained in:
Lachlan Kermode
2020-06-19 12:07:57 +02:00
parent e7718f18c7
commit 95cb7a6f80
2 changed files with 1 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ export default (data) => {
structure.__flat.forEach(label => {
deepRow[label] = baseRow[label]
})
if (deepRow['id'] && deepRow['id'] !== '') {
if (!Object.keys(deepRow).every(k => deepRow[k] === '')) {
output.push(deepRow)
}
})