Fix lists occasionally having the wrong layout (#3338)

This commit is contained in:
absidue 2023-03-22 01:57:06 +01:00 committed by GitHub
parent a969d6d040
commit 54ecce1058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 10 deletions

View File

@ -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
}
}
})