diff --git a/admin/src/components/ContributionLink/ContributionLink.vue b/admin/src/components/ContributionLink/ContributionLink.vue
index 1bff30226..c8963d3ab 100644
--- a/admin/src/components/ContributionLink/ContributionLink.vue
+++ b/admin/src/components/ContributionLink/ContributionLink.vue
@@ -72,6 +72,7 @@ export default {
if (this.visible) {
this.$root.$emit('bv::toggle::collapse', 'newContribution')
this.editContributionLink = false
+ this.contributionLinkData = {}
}
},
editContributionLinkData(data) {
diff --git a/admin/src/components/ContributionLink/ContributionLinkForm.vue b/admin/src/components/ContributionLink/ContributionLinkForm.vue
index ff7af8f7d..85b9a3e95 100644
--- a/admin/src/components/ContributionLink/ContributionLinkForm.vue
+++ b/admin/src/components/ContributionLink/ContributionLinkForm.vue
@@ -112,7 +112,7 @@
{{ $t('contributionLink.clear') }}
-
+
{{ $t('contributionLink.close') }}
@@ -208,14 +208,7 @@ export default {
},
watch: {
contributionLinkData() {
- this.form.name = this.contributionLinkData.name
- this.form.memo = this.contributionLinkData.memo
- this.form.amount = this.contributionLinkData.amount
- this.form.validFrom = this.contributionLinkData.validFrom
- this.form.validTo = this.contributionLinkData.validTo
- this.form.cycle = this.contributionLinkData.cycle
- this.form.maxPerCycle = this.contributionLinkData.maxPerCycle
- this.form.maxAmountPerMonth = this.contributionLinkData.maxAmountPerMonth
+ this.form = this.contributionLinkData
},
},
}