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