From 7f090acdb54ea656c93d6c5fc738a4a73ca5e12d Mon Sep 17 00:00:00 2001 From: Alexander Friedland Date: Tue, 8 Nov 2022 14:11:42 +0100 Subject: [PATCH] Update admin/src/components/ContributionLink/ContributionLinkForm.vue Co-authored-by: Moriz Wahl --- .../ContributionLink/ContributionLinkForm.vue | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/admin/src/components/ContributionLink/ContributionLinkForm.vue b/admin/src/components/ContributionLink/ContributionLinkForm.vue index 9c61bd031..05f5dac8b 100644 --- a/admin/src/components/ContributionLink/ContributionLinkForm.vue +++ b/admin/src/components/ContributionLink/ContributionLinkForm.vue @@ -165,17 +165,8 @@ export default { return this.toastError(this.$t('contributionLink.noStartDate')) if (this.form.validTo === null) return this.toastError(this.$t('contributionLink.noEndDate')) - const { validFrom, validTo, name, amount, memo, cycle, maxPerCycle, maxAmountPerMonth } = - this.form const variables = { - validFrom, - validTo, - name, - amount, - memo, - cycle, - maxPerCycle, - maxAmountPerMonth, + ...this.form, id: this.contributionLinkData.id ? this.contributionLinkData.id : null, }