Replaced the for loop with the for-of loop in the search-as-you-type JavaScript of the account form.
This commit is contained in:
		@@ -105,8 +105,8 @@ function initializeBaseAccountQuery() {
 | 
				
			|||||||
        options.forEach(function (option) {
 | 
					        options.forEach(function (option) {
 | 
				
			||||||
            const queryValues = JSON.parse(option.dataset.queryValues);
 | 
					            const queryValues = JSON.parse(option.dataset.queryValues);
 | 
				
			||||||
            let isMatched = false;
 | 
					            let isMatched = false;
 | 
				
			||||||
            for (let i = 0; i < queryValues.length; i++) {
 | 
					            for (const queryValue of queryValues) {
 | 
				
			||||||
                if (queryValues[i].includes(query.value)) {
 | 
					                if (queryValue.includes(query.value)) {
 | 
				
			||||||
                    isMatched = true;
 | 
					                    isMatched = true;
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user