From 17902bc44bc599b9c69633d217c5b21cb1603a1c Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 25 Nov 2020 15:45:13 +0300 Subject: [PATCH] Fixed Crud demo --- src/views/datatable/DataTableCrudDemo.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/datatable/DataTableCrudDemo.vue b/src/views/datatable/DataTableCrudDemo.vue index 14205ceee..8f2a400f7 100755 --- a/src/views/datatable/DataTableCrudDemo.vue +++ b/src/views/datatable/DataTableCrudDemo.vue @@ -321,7 +321,7 @@ export default { if (this.product.name.trim()) { if (this.product.id) { - this.$set(this.products, this.findIndexById(this.product.id), this.product); + this.products[this.findIndexById(this.product.id)] = this.product; this.$toast.add({severity:'success', summary: 'Successful', detail: 'Product Updated', life: 3000}); } else { @@ -431,7 +431,7 @@ export default { if (this.product.name.trim()) { if (this.product.id) { - this.$set(this.products, this.findIndexById(this.product.id), this.product); + this.products[this.findIndexById(this.product.id)] = this.product; this.$toast.add({severity:'success', summary: 'Successful', detail: 'Product Updated', life: 3000}); } else {