refs 4466 drop guard
gitea/salix-front/pipeline/head There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2024-01-03 11:36:18 +01:00
parent a1b6698819
commit 48a947ed95
1 changed files with 0 additions and 18 deletions

View File

@ -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: [
{