diff options
Diffstat (limited to 'src/views/EditInvoice.vue')
-rw-r--r-- | src/views/EditInvoice.vue | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/views/EditInvoice.vue b/src/views/EditInvoice.vue index 1ea9664..fe749ea 100644 --- a/src/views/EditInvoice.vue +++ b/src/views/EditInvoice.vue @@ -51,6 +51,8 @@ const refreshItems = async () => { const res = await axios.get(`/invoice/${invoiceId}/item`) if (res.status === 200) { items.value = calculateArr(res.data.data) + } else if (res.status == 204) { + items.value = [] } } catch (err) { toast.error('An unhandled exception occoured. Please check logs') |