From d9f38cb28bf7ceac256e78c47043cb08a5e2da3a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 5 Sep 2019 21:36:07 +0200 Subject: [PATCH] Fix a crash bug when looking at old moves with no analysis. --- www/js/remoteglot.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 3d52906..bed5a5c 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -780,6 +780,10 @@ var update_refutation_lines = function() { var tbl = $("#refutationlines"); tbl.empty(); + if (display_lines.length < 2) { + return; + } + // Find out where the lines start from. var base_line = []; var base_scores = display_lines[1].scores; -- 2.39.2