fix logout issue on payment and recurring-invoice view page

This commit is contained in:
radhika587
2023-03-10 18:19:00 +05:30
parent ba298cdb0a
commit bdf8fa8b5a
2 changed files with 20 additions and 75 deletions

View File

@ -78,10 +78,12 @@ let isLoading = computed(() => {
return recurringInvoiceStore.isFetchingViewData
})
const invoiceId = computed(() => route.params.id)
watch(
route,
() => {
if (route.params.id && route.name === 'recurring-invoices.view') {
() => invoiceId.value,
(id) => {
if (id && route.name === 'recurring-invoices.view') {
loadRecurringInvoice()
}
},