Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yashkanakiya committed Aug 28, 2023
1 parent 6d0edb4 commit c14eb1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions resources/scripts/admin/stores/estimate.js
Expand Up @@ -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)
Expand Down
9 changes: 4 additions & 5 deletions resources/scripts/admin/stores/invoice.js
Expand Up @@ -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) => {
Expand Down

0 comments on commit c14eb1b

Please sign in to comment.