From e60be6e3bd64abf11a4995a07c98bb875bae0134 Mon Sep 17 00:00:00 2001
From: Vidhu Kant Sharma <vidhukant@vidhukant.com>
Date: Sat, 2 Dec 2023 15:54:32 +0530
Subject: using key in v-for

---
 src/components/new_item.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/new_item.vue')

diff --git a/src/components/new_item.vue b/src/components/new_item.vue
index 34162a5..7615ec0 100644
--- a/src/components/new_item.vue
+++ b/src/components/new_item.vue
@@ -130,13 +130,13 @@ onMounted(() => {
       <label for="item-brand-input" class="form-label">Brand</label>
       <select
         class="form-select"
-        aria-label="Default select example"
+        aria-label="Select Brand"
         id="item-brand-input"
         v-model="itemBrand"
       >
         <option selected disabled value="0">Select Brand</option>
 
-        <option v-for="brand in allBrands" :value="brand">
+        <option v-for="brand in allBrands" :value="brand" :key="brand.id">
           {{ brand.Name }}
         </option>
       </select>
-- 
cgit v1.2.3

