HackTJ / live

A massively scalable application for realtime hackathon judging and mentoring.
MIT License
5 stars 2 forks source link

CSV download in spreadsheet view does not work when table has no rows #65

Closed sumanthratna closed 2 years ago

sumanthratna commented 3 years ago

when there are no rows in the table, no file is downloaded and this error appears in the console:

Alpine Error: "TypeError: Cannot convert undefined or null to object"

Expression: "downloadTableAsCsv"
...
Uncaught TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Proxy.downloadTableAsCsv
sumanthratna commented 2 years ago

closed by https://github.com/HackTJ/live/commit/ad2a86e956be9b13733410cf6ed4f75c00efa066