Skip to content

Commit

Permalink
Fix lists occasionally having the wrong layout (#3338)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored Mar 22, 2023
1 parent a969d6d commit 54ecce1
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/renderer/components/ft-element-list/ft-element-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
})

0 comments on commit 54ecce1

Please sign in to comment.