mirror of
https://github.com/flant/ovpn-admin.git
synced 2025-12-13 12:26:14 -08:00
Ensure rows is set to an array
This commit is contained in:
parent
05d7462a79
commit
44c2b34f6d
@ -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 : [];
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user