diff --git a/src/components/invoices/InvoiceControls.vue b/src/components/invoices/InvoiceControls.vue index 85eec75..e642e0f 100644 --- a/src/components/invoices/InvoiceControls.vue +++ b/src/components/invoices/InvoiceControls.vue @@ -5,12 +5,8 @@ :to="{name: 'invoices'}"> arrow_back Back -
- - - commit('setErrors', err.errors)); }, - async deleteInvoice(invoice) { + async deleteInvoice(store, invoice) { const res = await InvoiceService.deleteInvoice(invoice.id); if ('invoice_id' in res) { Invoice.delete(res.invoice_id); diff --git a/src/store/teams.js b/src/store/teams.js index 33978b3..c3c035d 100644 --- a/src/store/teams.js +++ b/src/store/teams.js @@ -43,7 +43,6 @@ export default { }, all() { return Team.query() - .with(['logos']) .where('$isNew', false) .get(); },