To receive notifications about scheduled maintenance, please subscribe to the mailing-list You can subscribe to the mailing-list at

Commit 25ebcbd2 authored by Hermann's avatar Hermann Committed by Sandro Lutz
Browse files

fix removing moderators

parent 8b717ac5
......@@ -79,12 +79,10 @@ export default class NewGroup extends EditView {
beforeSubmit() {
const { data } = this.form;
// exchange moderator object with string of id
moderator: data.moderator ? data.moderator._id : undefined,
}).then(() => this.controller.changeModus('view'));
const data = Object.assign({},;
// exchange moderator object with string of id, will return null if moderator is null
data.moderator = data.moderator ? data.moderator._id : null;
this.submit(data).then(() => this.controller.changeModus('view'));
view() {
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