From ed8f27e636b4ba5cb9f02c97de4d3a34a732b79b Mon Sep 17 00:00:00 2001 From: Bryce Johnson <bryce@gitlab.com> Date: Tue, 27 Sep 2016 13:37:26 +0200 Subject: [PATCH] Fix profile test failure. --- app/assets/javascripts/profile/profile.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/profile/profile.js.es6 b/app/assets/javascripts/profile/profile.js.es6 index c16eb93a2dd..b2307be73ad 100644 --- a/app/assets/javascripts/profile/profile.js.es6 +++ b/app/assets/javascripts/profile/profile.js.es6 @@ -1,7 +1,7 @@ ((global) => { class Profile { - constructor({ form }) { + constructor({ form } = {}) { this.onSubmitForm = this.onSubmitForm.bind(this); this.form = form || $('.edit-user'); this.bindEvents(); -- GitLab