mirror of https://github.com/FreeTubeApp/FreeTube
Fix lists occasionally having the wrong layout (#3338)
This commit is contained in:
parent
a969d6d040
commit
54ecce1058
|
@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue