Commit bad1feb2 authored by Bryce Johnson's avatar Bryce Johnson

Convert field error NodeList to an Array.

parent 80aa0a8f
......@@ -296,8 +296,8 @@
};
Dispatcher.prototype.initFieldErrors = function() {
return document.querySelectorAll('.show-gl-field-errors')
.forEach(function(form) {
var flaggedForms = document.querySelectorAll('.show-gl-field-errors');
return [...taggedForms].forEach(function(form) {
new gl.GlFieldErrors(form);
});
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment