From c14eb1b414322e2de0e335c9142024f696b7d29a Mon Sep 17 00:00:00 2001 From: yashkanakiya Date: Mon, 28 Aug 2023 10:41:43 +0530 Subject: [PATCH] minor fix --- resources/scripts/admin/stores/estimate.js | 4 ++-- resources/scripts/admin/stores/invoice.js | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/resources/scripts/admin/stores/estimate.js b/resources/scripts/admin/stores/estimate.js index cbcfaf1b6..5384249b3 100644 --- a/resources/scripts/admin/stores/estimate.js +++ b/resources/scripts/admin/stores/estimate.js @@ -138,10 +138,10 @@ export const useEstimateStore = (useWindow = false) => { }) }, - fetchEstimate(id, expand = []) { + fetchEstimate(id) { return new Promise((resolve, reject) => { axios - .get(`/api/v1/estimates/${id}`, { params: { expand } }) + .get(`/api/v1/estimates/${id}`) .then((response) => { this.setEstimateData(response.data.data) this.setCustomerAddresses(this.newEstimate.customer) diff --git a/resources/scripts/admin/stores/invoice.js b/resources/scripts/admin/stores/invoice.js index cfe280f96..5b4d14f10 100644 --- a/resources/scripts/admin/stores/invoice.js +++ b/resources/scripts/admin/stores/invoice.js @@ -128,14 +128,13 @@ export const useInvoiceStore = (useWindow = false) => { }) }, - fetchInvoice(id, expand = []) { + fetchInvoice(id) { return new Promise((resolve, reject) => { axios - .get(`/api/v1/invoices/${id}`, { params: { expand } }) + .get(`/api/v1/invoices/${id}`) .then((response) => { - this.setInvoiceData(response.data.data) - - this.setCustomerAddresses(this.newInvoice.customer) + this.setInvoiceData(response.data.data) + this.setCustomerAddresses(this.newInvoice.customer) resolve(response) }) .catch((err) => {