From 340f12154b0b7c717521fffe770b4add83bb531b Mon Sep 17 00:00:00 2001 From: "dragan.gjorgjiev" Date: Fri, 6 Aug 2021 00:14:24 +0200 Subject: [PATCH] Fixes riasvdv/statamic-redirect#13 --- resources/js/components/DeletesListingRow.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/js/components/DeletesListingRow.js b/resources/js/components/DeletesListingRow.js index 67818a7..64d7222 100644 --- a/resources/js/components/DeletesListingRow.js +++ b/resources/js/components/DeletesListingRow.js @@ -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) { @@ -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);