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

This commit is contained in:
PikachuEXE 2024-03-25 23:23:01 +08:00 committed by GitHub
parent cac1d6be09
commit 8fa8e1fd99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

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
}