fix: fix possible NPE

This commit is contained in:
JellyBrick
2024-12-25 10:28:24 +09:00
parent 5829c8d0f7
commit 1bad46890a

View File

@ -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 &&