Skip to content

Commit

Permalink
Fix local API erroring when the view count is missing on the channel …
Browse files Browse the repository at this point in the history
…shorts tab (#4689)
  • Loading branch information
absidue authored Feb 19, 2024
1 parent e5bd98b commit 7b74099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/helpers/api/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
}
})
Expand Down

0 comments on commit 7b74099

Please sign in to comment.