Fix rendering settings that have type ['string', 'image']

This commit is contained in:
Angelina Filippova 2020-08-07 21:01:31 +03:00
parent b9f1c93f65
commit e85d5123a5

View file

@ -295,7 +295,7 @@ export default {
return this.$store.state.settings.updatedSettings
},
isImageUrl() {
return [':background', ':logo', ':nsfwCensorImage', ':default_user_avatar', ':instance_thumbnail'].includes(this.setting.key)
return Array.isArray(this.setting.type) && this.setting.type.includes('image')
}
},
methods: {