Fix imageAspectRatio set to null UpdatePost

- we were not setting the form.imageAspectRatio to the value of the
post's imageAspectRatio, so when a user updated their post, but did not
update their imageAspectRatio it would set it to null
This commit is contained in:
mattwr18 2019-12-20 00:59:29 +01:00
parent a3dc43c0a6
commit 730da2029c

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
}