diff --git a/src/renderer/components/ft-element-list/ft-element-list.js b/src/renderer/components/ft-element-list/ft-element-list.js index bc509ed8a0e5c..9c25aed8b5846 100644 --- a/src/renderer/components/ft-element-list/ft-element-list.js +++ b/src/renderer/components/ft-element-list/ft-element-list.js @@ -23,19 +23,13 @@ export default defineComponent({ default: false } }, - data: function () { - return { - displayValue: this.display - } - }, computed: { listType: function () { return this.$store.getters.getListType - } - }, - mounted: function () { - if (this.display === '') { - this.displayValue = this.listType + }, + + displayValue: function () { + return this.display === '' ? this.listType : this.display } } })