mirror of https://github.com/FreeTubeApp/FreeTube
! Fix handling of video data without `published` (#4788)
This commit is contained in:
parent
cac1d6be09
commit
8fa8e1fd99
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue