apiRequest resolves to reponse instead if reponse.data

This commit is contained in:
Sebastian Frank
2017-10-23 14:05:53 +02:00
parent 520d5bc07e
commit d65faa41b3
6 changed files with 22 additions and 31 deletions

View File

@@ -68,9 +68,9 @@ export default {
search
}
})
.then(rows => {
this.hasMore = (rows.length >= limit);
this.newRows = rows;
.then(response => {
this.hasMore = (response.data.length >= limit);
this.newRows = response.data;
this.loading = false;
})
.catch(error => {