From 48a947ed9582b5d6cbdaa62743663abb62561a87 Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 3 Jan 2024 11:36:18 +0100 Subject: [PATCH] refs 4466 drop guard --- src/router/modules/invoiceIn.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/router/modules/invoiceIn.js b/src/router/modules/invoiceIn.js index 24d6fcdf9..f1e63a3ce 100644 --- a/src/router/modules/invoiceIn.js +++ b/src/router/modules/invoiceIn.js @@ -43,24 +43,6 @@ export default { name: 'InvoiceInCard', path: ':id', component: () => import('src/pages/InvoiceIn/Card/InvoiceInCard.vue'), - beforeEnter: async (to, from, next) => { - const card = to.matched.find((match) => match.name == 'InvoiceInCard'); - const corrective = card.children.find( - (child) => child.name == 'InvoiceInCorrective' - ); - - const { data: correctings } = await axios.get('InvoiceInCorrections', { - params: { - filter: { - where: { - correctingFk: to.params.id, - }, - }, - }, - }); - corrective.meta.hidden = !correctings.length > 0; - next(); - }, redirect: { name: 'InvoiceInSummary' }, children: [ {