! Fix handling of video data without published (#4788)

This commit is contained in:
PikachuEXE
2024-03-25 15:23:01 +00:00
committed by GitHub
parent cac1d6be09
commit 8fa8e1fd99
+2 -2
View File
@@ -738,7 +738,7 @@ export function parseLocalListVideo(item) {
let publishedText
if (!video.published?.isEmpty()) {
if (video.published != null && !video.published.isEmpty()) {
publishedText = video.published.text
}
@@ -834,7 +834,7 @@ function parseListItem(item) {
export function parseLocalWatchNextVideo(video) {
let publishedText
if (!video.published?.isEmpty()) {
if (video.published != null && !video.published.isEmpty()) {
publishedText = video.published.text
}