Skip to content

Commit

Permalink
Fix ES6 syntax that apparently isn't allowed here
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperka committed Mar 24, 2020
1 parent f52c791 commit 6ded6b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/views/group_modal_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ ELMO.Views.GroupModalView = class GroupModalView extends ELMO.Views.FormView {
this.list_view.update_group_on_edit(data);
this.hide();
},
error: this.replaceModalBody,
error: this.replaceModalBody.bind(this),
complete: () => {
ELMO.app.loading(false);
},
});
}

replaceModalBody = ({ responseText }) => {
replaceModalBody({ responseText }) {
this.$('.modal-body').replaceWith(responseText);
ReactRailsUJS.mountComponents('.modal-body');
}
Expand Down

0 comments on commit 6ded6b4

Please sign in to comment.