mirror of https://github.com/FreeTubeApp/FreeTube
! Fix handling of `channel.subscriber.text` being `undefined` (#3340)
This commit is contained in:
parent
6513b5d517
commit
f0ba90e766
|
@ -54,7 +54,7 @@ export default defineComponent({
|
|||
|
||||
this.channelName = this.data.name
|
||||
this.id = this.data.id
|
||||
if (this.hideChannelSubscriptions || this.data.subscribers === null) {
|
||||
if (this.hideChannelSubscriptions || this.data.subscribers == null) {
|
||||
this.subscriberCount = null
|
||||
} else {
|
||||
this.subscriberCount = this.data.subscribers.replace(/ subscriber(s)?/, '')
|
||||
|
|
|
@ -370,7 +370,7 @@ function parseListItem(item) {
|
|||
let subscribers = null
|
||||
let videos = null
|
||||
let handle = null
|
||||
if (channel.subscribers.text.startsWith('@')) {
|
||||
if (channel.subscribers.text?.startsWith('@')) {
|
||||
handle = channel.subscribers.text
|
||||
|
||||
if (channel.videos.text !== 'N/A') {
|
||||
|
|
Loading…
Reference in New Issue