mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: client side crash when creating groups
This commit is contained in:
@@ -37,7 +37,7 @@ define('admin/manage/groups', [
|
|||||||
hidden: $('#create-group-hidden').is(':checked') ? 1 : 0,
|
hidden: $('#create-group-hidden').is(':checked') ? 1 : 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
api.post('/groups', submitObj, (response) => {
|
api.post('/groups', submitObj).then((response) => {
|
||||||
createModalError.addClass('hide');
|
createModalError.addClass('hide');
|
||||||
createGroupName.val('');
|
createGroupName.val('');
|
||||||
createModal.on('hidden.bs.modal', function () {
|
createModal.on('hidden.bs.modal', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user