From 3d85d606fdd1d9d3819749115d9e05bef9b50a92 Mon Sep 17 00:00:00 2001 From: Kai Date: Thu, 4 Feb 2021 07:39:48 +0100 Subject: [PATCH] fail more gracefully on empty TSV file --- neat.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neat.js b/neat.js index 7b64f14..b52c66d 100644 --- a/neat.js +++ b/neat.js @@ -48,6 +48,8 @@ function loadFile(evt, onComplete) { function setupInterface(data, file, urls) { + if (data.data.length <= 0) return null; + // private variables of app let displayRows=15