fix: client side crash when creating groups

This commit is contained in:
Barış Soner Uşaklı
2020-11-03 16:54:44 -05:00
parent d40779a4ba
commit 5a2b14b751

View File

@@ -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 () {