From 00b08aad161d5832f709582d31708686a2bce3a2 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 1 Nov 2022 14:43:53 +0100 Subject: [PATCH] this.link to const link --- admin/src/components/ContributionLinkForm.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/src/components/ContributionLinkForm.vue b/admin/src/components/ContributionLinkForm.vue index 72365dc51..9c61bd031 100644 --- a/admin/src/components/ContributionLinkForm.vue +++ b/admin/src/components/ContributionLinkForm.vue @@ -127,7 +127,7 @@ export default { return {} }, }, - editContributionLink: { type: Boolean, required: false }, + editContributionLink: { type: Boolean, required: true }, }, data() { return { @@ -185,11 +185,11 @@ export default { variables: variables, }) .then((result) => { - this.link = this.editContributionLink + const link = this.editContributionLink ? result.data.updateContributionLink.link : result.data.createContributionLink.link this.toastSuccess( - this.editContributionLink ? this.$t('contributionLink.changeSaved') : this.link, + this.editContributionLink ? this.$t('contributionLink.changeSaved') : link, ) this.onReset() this.$root.$emit('bv::toggle::collapse', 'newContribution')