mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 03:11:46 +00:00
fix: fix possible NPE
This commit is contained in:
@ -140,7 +140,7 @@ const handleData = async (
|
||||
}
|
||||
|
||||
const thumbnails = videoDetails.thumbnail?.thumbnails;
|
||||
songInfo.imageSrc = thumbnails.at(-1)?.url.split('?')[0];
|
||||
songInfo.imageSrc = thumbnails?.at(-1)?.url?.split('?')?.at(0);
|
||||
|
||||
if (
|
||||
songInfo.imageSrc &&
|
||||
|
||||
Reference in New Issue
Block a user