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) => {