iwsllc/json-csv

Undefined label throws error; should use name instead

nathanb opened this issue · 0 comments

when leaving label undefined, exporter throws exception.

 Uncaught TypeError: Cannot read property 'indexOf' of undefined
    at exporter.prepValue (exporter.js:42:34)
    at exporter.js:58:18
    at arrayReduce (node_modules/lodash/lodash.js:652:21)
    at Function.reduce (node_modules/lodash/lodash.js:8606:14)
    at exporter.getHeaderRow (exporter.js:51:18)
    at Stream.write (exporter.js:34:30)