1
0
Fork 0
mirror of synced 2024-11-24 09:45:35 -05:00

Ensure rows is set to an array

This commit is contained in:
CheyenneForbes 2021-07-16 03:03:12 -05:00 committed by GitHub
parent 05d7462a79
commit 44c2b34f6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -298,7 +298,7 @@ new Vue({
var _this = this; var _this = this;
axios.request(axios_cfg('api/users/list')) axios.request(axios_cfg('api/users/list'))
.then(function(response) { .then(function(response) {
_this.rows = response.data; _this.rows = Array.isArray(response.data) ? response.data : [];
}); });
}, },