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