From 54ecce1058184193bada079fd3c01fe08f2d341d Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Wed, 22 Mar 2023 01:57:06 +0100 Subject: [PATCH] Fix lists occasionally having the wrong layout (#3338) --- .../components/ft-element-list/ft-element-list.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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 } } })