From 76d4582c83310724c87b4e8cdecbd17f05a73663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Thu, 26 Mar 2020 17:53:42 +0100 Subject: [PATCH] Fix doublon assertion --- static/js/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/data.js b/static/js/data.js index 568981d4..3846ae4c 100644 --- a/static/js/data.js +++ b/static/js/data.js @@ -333,7 +333,7 @@ class dataFileBase { // Find if there is a duplicate or not if (stfy.indexOf(element, i + 1) >= 0) { // Find if the element is already in the result array or not - if (result.indexOf(element) === -1) { + if (double.indexOf(element) === -1) { double.push(dat.excitations[i]) } }