Fix local API erroring when the view count is missing on the channel shorts tab (#4689)

This commit is contained in:
absidue 2024-02-19 02:35:13 +01:00 committed by GitHub
parent e5bd98b775
commit 7b74099b24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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