mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
minor fix
This commit is contained in:
@ -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)
|
||||
|
||||
@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user