From df0f3e21b65c224ac82e5b213cab2c44aea0eef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Thu, 11 Aug 2022 15:05:43 +0200 Subject: [PATCH] Reduce comment to a minimal --- frontend/src/components/Contributions/ContributionForm.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/src/components/Contributions/ContributionForm.vue b/frontend/src/components/Contributions/ContributionForm.vue index bec2e56e1..3a9010ec2 100644 --- a/frontend/src/components/Contributions/ContributionForm.vue +++ b/frontend/src/components/Contributions/ContributionForm.vue @@ -108,10 +108,7 @@ export default { }, submit() { this.form.amount = this.numberFormat(this.form.amount) - // not working for testing: - // this.$emit(this.form.id ? 'update-contribution' : 'set-contribution', this.form) - // works for testing: - // why ever, we have to make a spread '...', to evaluate the values it looks like: (I didn't find a solution in the test itmself) + // spreading is needed for testing this.$emit(this.form.id ? 'update-contribution' : 'set-contribution', { ...this.form }) this.reset() },