Skip to content

Commit

Permalink
Fixes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
dgjorgjiev-snk committed Aug 5, 2021
1 parent c986558 commit 340f121
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/js/components/DeletesListingRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
},

deletingModalTitleFromRowKey(key) {
return __("Delete") + " " + this.rows[this.deletingRow.index][key];
return __("Delete") + " " + this.items[this.deletingRow.index][key];
},

deleteRow(resourceRoute, message) {
Expand All @@ -27,8 +27,8 @@ export default {
this.$axios
.delete(cp_url(`${resourceRoute}/${id}`))
.then(() => {
let i = _.indexOf(this.rows, _.findWhere(this.rows, { id }));
this.rows.splice(i, 1);
let i = _.indexOf(this.items, _.findWhere(this.items, { id }));
this.items.splice(i, 1);
this.deletingRow = false;
this.$toast.success(message);

Expand Down

0 comments on commit 340f121

Please sign in to comment.