Update admin/src/components/ContributionLink/ContributionLinkForm.vue

Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
This commit is contained in:
Alexander Friedland 2022-11-08 14:11:42 +01:00 committed by GitHub
parent 60b3b8bbcc
commit 7f090acdb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
}