From a26ab9f60314420aad1c7d2a328d299f503532fa Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 11 Feb 2024 12:43:13 +0530 Subject: removed annoying notifications on HTTP 204 --- src/components/new_item.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/components/new_item.vue') diff --git a/src/components/new_item.vue b/src/components/new_item.vue index 8b1f3f6..e93d0ea 100644 --- a/src/components/new_item.vue +++ b/src/components/new_item.vue @@ -10,7 +10,7 @@ const toast = useToast({ const isLoading = ref(true) const item = ref(new Item()) -const itemBrand = ref({ id: 0, name: '' }) +const itemBrand = ref(null) const allBrands = ref([]) const getAllBrands = async () => { @@ -21,8 +21,6 @@ const getAllBrands = async () => { const r = await axios.get('/brand') if (r.status === 200) { allBrands.value = r.data.data - } else if (r.status === 204) { - toast.warning('No brands found') } } catch (err) { toast.error('An unhandled exception occoured. Please check logs') @@ -129,13 +127,15 @@ onMounted(() => {
+