Merge pull request #59 from forensic-architecture/fix/timemap_data

fix example sheet
This commit is contained in:
Lachlan Kermode
2020-11-20 10:17:43 +00:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

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