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) {
78
78
79
79
for ( const key in option . values ) {
80
80
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 )
82
82
83
83
if ( ! matchedPair ) {
84
84
matchedPair = { keys : [ ] , value }
@@ -91,7 +91,7 @@ function checkDuplicates (option) {
91
91
92
92
function pushDuplicateErrors ( ) {
93
93
for ( const toggle in ToggleModule . optionValues ) {
94
- for ( const optionValues of Object . values ( ToggleModule . optionValues [ toggle ] ) ) {
94
+ for ( const optionValues of ToggleModule . optionValues [ toggle ] ) {
95
95
if ( optionValues . keys . length > 1 ) {
96
96
ErrorLog . push ( new DuplicateToggleValueError ( toggle , optionValues ) )
97
97
}
You can’t perform that action at this time.
0 commit comments