fix example sheet

This commit is contained in:
Lachlan Kermode
2020-11-20 11:15:37 +01:00
parent 17607cf69f
commit 386407138f
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)
}
})