Skip to content

Commit

Permalink
Fixed Crud demo
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Nov 25, 2020
1 parent e02f55e commit 17902bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/datatable/DataTableCrudDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 17902bc

Please sign in to comment.