From: Steinar H. Gunderson Date: Thu, 5 Sep 2019 19:36:07 +0000 (+0200) Subject: Fix a crash bug when looking at old moves with no analysis. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=d9f38cb28bf7ceac256e78c47043cb08a5e2da3a;ds=sidebyside Fix a crash bug when looking at old moves with no analysis. --- 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;