Merge pull request #34 from CheyenneForbes/patch-1
Ensure `rows` is set to an array
This commit is contained in:
commit
2012f07135
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ new Vue({
|
|||
var _this = this;
|
||||
axios.request(axios_cfg('api/users/list'))
|
||||
.then(function(response) {
|
||||
_this.rows = response.data;
|
||||
_this.rows = Array.isArray(response.data) ? response.data : [];
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue