Fixed Crud demo

pull/682/head
Cagatay Civici 2020-11-25 15:45:13 +03:00
parent e02f55ef5b
commit 17902bc44b
1 changed files with 2 additions and 2 deletions

View File

@ -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 {