From 44c2b34f6deae118b68b161ef58a34c42449b5de Mon Sep 17 00:00:00 2001 From: CheyenneForbes Date: Fri, 16 Jul 2021 03:03:12 -0500 Subject: [PATCH] Ensure `rows` is set to an array --- frontend/src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/main.js b/frontend/src/main.js index 4335468..b72b8a7 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -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 : []; }); },