minor fix

This commit is contained in:
yashkanakiya
2023-08-28 10:41:43 +05:30
parent 6d0edb4b5a
commit c14eb1b414
2 changed files with 6 additions and 7 deletions

View File

@ -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)

View File

@ -128,13 +128,12 @@ 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)
resolve(response)
})