diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-10-07 21:45:55 +0200 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-10-15 08:28:54 +0200 |
commit | bad1feb23c63a86f8f4103e4b75ec590fc90da4f (patch) | |
tree | 8bbaaa9c62f5c5a0e356fb06186edddeeb806ee8 /app | |
parent | 80aa0a8f86a02e7b36a866906b902a3dfce325f3 (diff) | |
download | gitlab-ce-bad1feb23c63a86f8f4103e4b75ec590fc90da4f.tar.gz |
Convert field error NodeList to an Array.
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/dispatcher.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js index 846884ea793..6452ae675b4 100644 --- a/app/assets/javascripts/dispatcher.js +++ b/app/assets/javascripts/dispatcher.js @@ -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); }); }; |