File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
engine/modules/toggle/src/main/resources/view/toggle-module Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ function checkDuplicates (option) {
7878
7979 for ( const key in option . values ) {
8080 const value = option . values [ key ]
81- var matchedPair = ToggleModule . optionValues [ option . toggle ] . find ( elem => elem . value === value )
81+ let matchedPair = ToggleModule . optionValues [ option . toggle ] . find ( elem => elem . value === value )
8282
8383 if ( ! matchedPair ) {
8484 matchedPair = { keys : [ ] , value }
@@ -91,7 +91,7 @@ function checkDuplicates (option) {
9191
9292function pushDuplicateErrors ( ) {
9393 for ( const toggle in ToggleModule . optionValues ) {
94- for ( const optionValues of Object . values ( ToggleModule . optionValues [ toggle ] ) ) {
94+ for ( const optionValues of ToggleModule . optionValues [ toggle ] ) {
9595 if ( optionValues . keys . length > 1 ) {
9696 ErrorLog . push ( new DuplicateToggleValueError ( toggle , optionValues ) )
9797 }
You can’t perform that action at this time.
0 commit comments