Skip to content

Commit 1fbcbf0

Browse files
Add null-check for RichShelf playlist url
1 parent e337396 commit 1fbcbf0

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
@@ -974,7 +974,7 @@ export function parseChannelHomeTab(homeTab, channelId, channelName) {
974974
title: shelf.title?.text,
975975
content: shelf.contents.map(e => parseListItem(e.content, channelId, channelName)),
976976
subtitle: shelf.subtitle?.text,
977-
playlistId: shelf.endpoint?.metadata.url.includes('/playlist') ? shelf.endpoint?.metadata.url.replace('/playlist?list=', '') : null
977+
playlistId: shelf.endpoint?.metadata.url?.includes('/playlist') ? shelf.endpoint?.metadata.url.replace('/playlist?list=', '') : null
978978
})
979979
}
980980
}

0 commit comments

Comments
 (0)