Skip to content

Firefly III: a personal finances manager

Clean up destroy routine

James Coled6e5f71d5086
diff --git a/frontend/src/components/transactions/LargeTable.vue b/frontend/src/components/transactions/LargeTable.vue
index ff9ea71ffb..43ad39ca1b 100644
--- a/frontend/src/components/transactions/LargeTable.vue
+++ b/frontend/src/components/transactions/LargeTable.vue
@@ -127,7 +127,7 @@
<script>
import format from "date-fns/format";
-import Destroy from "../../api/transactions/destroy";
+import Destroy from "../../api/generic/destroy";
export default {
name: "LargeTable",
@@ -209,8 +209,8 @@ export default {
});
},
destroyTransaction: function (id) {
- let destr = new Destroy;
- destr.destroy(id).then(() => {
+
+ (new Destroy('transactions')).destroy(id).then(() => {
this.$store.dispatch('fireflyiii/refreshCacheKey');
//this.triggerUpdate();
});