From dfaef7cf14bce5ab1d354d3cf3d0d8bdd53c42ae Mon Sep 17 00:00:00 2001 From: Timur Enikeev Date: Sun, 11 Aug 2024 05:26:19 -0400 Subject: [PATCH] Format fix --- src/views/apps/AsyncContent.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/apps/AsyncContent.vue b/src/views/apps/AsyncContent.vue index e860a9a1..55f3236d 100644 --- a/src/views/apps/AsyncContent.vue +++ b/src/views/apps/AsyncContent.vue @@ -17,10 +17,12 @@ if (!appsStore.categories) { await ServicesApi.getCategories([CategoryInfo.Buttons]); } -for (let categoryIndex = 0; categoryIndex < appsStore.categories.length; categoryIndex++) { - appsStore.categories[categoryIndex].buttons = appsStore.categories[categoryIndex].buttons.filter( - button => button.view !== ButtonView.Hidden - ); +if (appsStore.categories) { + for (let categoryIndex = 0; categoryIndex < appsStore.categories.length; categoryIndex++) { + appsStore.categories[categoryIndex].buttons = appsStore.categories[ + categoryIndex + ].buttons.filter(button => button.view !== ButtonView.Hidden); + } } const sendMarketing = (url: string) => {