diff --git a/resources/scripts/admin/views/customers/partials/CustomerChart.vue b/resources/scripts/admin/views/customers/partials/CustomerChart.vue index 8b85c102c..ce60d968b 100644 --- a/resources/scripts/admin/views/customers/partials/CustomerChart.vue +++ b/resources/scripts/admin/views/customers/partials/CustomerChart.vue @@ -35,16 +35,7 @@
@@ -177,10 +168,12 @@ const getChartInvoices = computed(() => { return [] }) +const customerId = computed(() => route.params.id) + watch( - route, - () => { - if (route.params.id) { + () => customerId.value, + (id) => { + if (id && route.name === 'customers.view') { loadCustomer() } selectedYear.value = 'This year' diff --git a/resources/scripts/admin/views/estimates/View.vue b/resources/scripts/admin/views/estimates/View.vue index a4d0f7996..878ac4d5e 100644 --- a/resources/scripts/admin/views/estimates/View.vue +++ b/resources/scripts/admin/views/estimates/View.vue @@ -37,32 +37,10 @@