Merge pull request #2250 from nextcloud/check-if-data-is-defined
Check if data is defined
This commit is contained in:
commit
7b0b7e801f
|
@ -497,7 +497,7 @@ var UserList = {
|
||||||
group: group
|
group: group
|
||||||
},
|
},
|
||||||
function (response) {
|
function (response) {
|
||||||
if (response.data.message) {
|
if (response.data !== undefined && response.data.message) {
|
||||||
OC.Notification.show(response.data.message);
|
OC.Notification.show(response.data.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue