From 115f9e6b2602b06c0c6a911e818cb4232383e38c Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Tue, 18 Jan 2022 13:08:21 -0500 Subject: [PATCH] Update index.html --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 1b163c0e..0ac123b6 100644 --- a/index.html +++ b/index.html @@ -5220,10 +5220,10 @@ for (var k = 0; k < b0.split(" AND ").length; k++) { // If the element has reactions, loop through each one (it is an object), if the value for elem1 or elem2 is not an element, remove that key if (elements[key].reactions) { for (var reaction in elements[key].reactions) { - if (!elements[elements[key].reactions[reaction].elem1]) { + if (!elements[elements[key].reactions[reaction].elem1] && elements[key].reactions[reaction].elem1 != null) { delete elements[key].reactions[reaction].elem1; } - if (!elements[elements[key].reactions[reaction].elem2]) { + if (!elements[elements[key].reactions[reaction].elem2] && elements[key].reactions[reaction].elem2 != null) { delete elements[key].reactions[reaction].elem2; } } @@ -5562,4 +5562,4 @@ for (var k = 0; k < b0.split(" AND ").length; k++) { - \ No newline at end of file +