Fix "data is undefined" by adjusting the name of the parameter
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
fb296342b9
commit
bd9209b316
|
@ -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);
|
||||
}
|
||||
});
|
||||
})();
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue