Skip to content

Commit bf071ff

Browse files
author
Eric Claeren
committed
24070 - Changed const/let to var for better browser support
1 parent daeaa21 commit bf071ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Backend/view/adminhtml/web/js/validate-store.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ define([
5050
options = $.data(form, 'validator').settings;
5151

5252
if ($(form).validation('isValid')) {
53-
const counts = {};
53+
var counts = {};
5454
$.each($(form).serializeArray(), function () {
55-
let name = this.name;
55+
var name = this.name;
5656
counts[name] = (counts[name] || 0) + 1;
5757
if (formData[name]) {
58-
const replacement = '[' + (counts[name] - 1) + ']';
58+
var replacement = '[' + (counts[name] - 1) + ']';
5959
name = name.replace(new RegExp(/\[\]$/g), replacement);
6060
}
6161
formData[name] = this.value || '';

0 commit comments

Comments
 (0)