diff --git a/resources/assets/js/home/ModalNewRequest.vue b/resources/assets/js/home/ModalNewRequest.vue index 73bd16b7f..a87c0a507 100644 --- a/resources/assets/js/home/ModalNewRequest.vue +++ b/resources/assets/js/home/ModalNewRequest.vue @@ -64,8 +64,10 @@ export default { api.process.list .start() .then((response) => { - that.categories = that.formatCategories(response.data); - that.categoriesFiltered = that.categories; + if (response.data && response.data.success !== "failure") { + that.categories = that.formatCategories(response.data); + that.categoriesFiltered = that.categories; + } }) .catch((e) => { console.error(e);