Clean up destroy routine

This commit is contained in:
James Cole 2022-02-28 17:06:43 +01:00
parent b9536dfe4e
commit d6e5f71d50
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -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();
});