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 {