mirror of https://github.com/FreeTubeApp/FreeTube
Fix local API erroring when the view count is missing on the channel shorts tab (#4689)
This commit is contained in:
parent
e5bd98b775
commit
7b74099b24
|
@ -539,7 +539,7 @@ export function parseLocalChannelShorts(shorts, channelId, channelName) {
|
|||
title: short.title.text,
|
||||
author: channelName,
|
||||
authorId: channelId,
|
||||
viewCount: parseLocalSubscriberCount(short.views.text),
|
||||
viewCount: short.views.isEmpty() ? null : parseLocalSubscriberCount(short.views.text),
|
||||
lengthSeconds: ''
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue