Update index.html

This commit is contained in:
slweeb 2022-01-18 13:08:21 -05:00 committed by GitHub
parent 6e483dc5ad
commit 115f9e6b26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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++) {
</body>
</html>
</html>