Pārlūkot izejas kodu

fix: not displaying operator select if the las operator is semicolumn

Marcelo Vilas Boas Correa Filho 3 gadi atpakaļ
vecāks
revīzija
008ffd7705
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      js/accessibleUI/modules/operations/operations.js

+ 1 - 1
js/accessibleUI/modules/operations/operations.js

@@ -190,7 +190,7 @@ export function updateOperationOperator (operationHash, operatorHash, newValue)
             else if (operator.operator.name === ';' 
                 && (operation.operators.indexOf(operator) !== (operation.operators.length - 1))
                 && operationTypeSelect.parentElement.nextElementSibling != null) {
-                    let indexOfOperator = operation.operators.indexOf(operator);
+                    let indexOfOperator = operation.operators.indexOf(operator) + 1;
                     operation.operators.splice(indexOfOperator);
 
                     let elementSibling = operationTypeSelect.parentElement.nextElementSibling;