From d7d74a7bb0983300a5e8ac3b24399e2cd7f1d958 Mon Sep 17 00:00:00 2001 From: Artyom Sovetnikov <2056864+Elringus@users.noreply.github.com> Date: Wed, 6 Dec 2023 18:50:05 +0300 Subject: [PATCH] etc --- docs/.vitepress/imgit/plugin/youtube.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.vitepress/imgit/plugin/youtube.ts b/docs/.vitepress/imgit/plugin/youtube.ts index d70e99ff7..c915b0494 100644 --- a/docs/.vitepress/imgit/plugin/youtube.ts +++ b/docs/.vitepress/imgit/plugin/youtube.ts @@ -48,7 +48,7 @@ function build(asset: BuiltAsset): boolean { } async function resolveThumbnailUrl(id: string): Promise { - if ((cache).youtube.hasOwnProperty(id)) + if ((cache).youtube?.hasOwnProperty(id)) return (cache).youtube[id]; let response: Response; for (const variant of thumbs)