! Fix handling of channel.subscriber.text being undefined (#3340)
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user