Fix getting data for icon inputs

This commit is contained in:
Angelina Filippova 2020-07-12 02:18:14 +03:00
parent b6a66ebe20
commit 710bb8bfa7

View file

@ -209,7 +209,7 @@ export default {
this.$store.state.settings.db[group][key].includes(this.setting.key) this.$store.state.settings.db[group][key].includes(this.setting.key)
}, },
iconsData() { iconsData() {
return Array.isArray(this.data[':icons']) ? this.data[':icons'] : [] return Array.isArray(this.data) ? this.data : []
}, },
inputValue() { inputValue() {
if ([':esshd', ':cors_plug', ':quack', ':tesla', ':swoosh'].includes(this.settingGroup.group) && if ([':esshd', ':cors_plug', ':quack', ':tesla', ':swoosh'].includes(this.settingGroup.group) &&