Skip to content

Commit 43ec6d4

Browse files
Add null-check for RichShelf playlist url
1 parent 0be976f commit 43ec6d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/helpers/api/local.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ export function parseChannelHomeTab(homeTab) {
939939
title: shelf.title?.text,
940940
content: shelf.contents.map(e => parseListItem(e.content)),
941941
subtitle: shelf.subtitle?.text,
942-
playlistId: shelf.endpoint?.metadata.url.includes('/playlist') ? shelf.endpoint?.metadata.url.replace('/playlist?list=', '') : null
942+
playlistId: shelf.endpoint?.metadata.url?.includes('/playlist') ? shelf.endpoint?.metadata.url.replace('/playlist?list=', '') : null
943943
})
944944
}
945945
}

0 commit comments

Comments
 (0)