Fix "data is undefined" by adjusting the name of the parameter

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2018-05-04 15:53:39 +02:00
parent fb296342b9
commit bd9209b316
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 3 additions and 3 deletions

View File

@ -167,12 +167,12 @@
url: OC.linkToOCS('cloud/groups', 2) + 'details',
dataType: 'json',
quietMillis: 100,
}).success(function(response) {
}).success(function(data) {
if (data.ocs.data.groups && data.ocs.data.groups.length > 0) {
data.ocs.data.groups.forEach(function(group) {
self.groups.push({ id: group.id, displayname: group.displayname });
})
});
self.render();
} else {
@ -391,4 +391,4 @@
this.collection.each(this.renderOperation, this);
}
});
})();
})();