Merge pull request #2588 from Human-Connection/fix-imageAspectRatio-null-update-post

Fix imageAspectRatio set to null UpdatePost
This commit is contained in:
Wolfgang Huß 2019-12-20 02:18:28 +01:00 committed by GitHub
commit 7d5b9cf01d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -308,6 +308,7 @@ describe('ContributionForm.vue', () => {
name: 'Democracy & Politics',
},
],
imageAspectRatio: 1,
},
}
wrapper = Wrapper()
@ -354,7 +355,7 @@ describe('ContributionForm.vue', () => {
categoryIds: ['cat12'],
image,
imageUpload: null,
imageAspectRatio: null,
imageAspectRatio: 1,
},
}
})

View File

@ -169,6 +169,7 @@ export default {
? languageOptions.find(o => this.contribution.language === o.value)
: null
form.categoryIds = this.categoryIds(this.contribution.categories)
form.imageAspectRatio = this.contribution.imageAspectRatio
form.blurImage = this.contribution.imageBlurred
}