aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-12-02 15:54:32 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-12-02 15:54:32 +0530
commite60be6e3bd64abf11a4995a07c98bb875bae0134 (patch)
tree3e897204df10d68f11b01250faca740473a8ddb8
parentbd0981867ba8e569e3e2c9b839548a189627df0a (diff)
using key in v-for
-rw-r--r--src/components/new_item.vue4
1 files changed, 2 insertions, 2 deletions
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>