From 806068b9de7d3cd4a1482bdaae447f9423a7dd6e Mon Sep 17 00:00:00 2001 From: Saya <379924+chu121su12@users.noreply.github.com> Date: Wed, 18 Jun 2025 14:57:28 +0800 Subject: [PATCH] Drilldown: Fix js crash when using http (#105646) Update AppWrapper.tsx --- public/app/AppWrapper.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/AppWrapper.tsx b/public/app/AppWrapper.tsx index e3a8e59b257..74a71d9711b 100644 --- a/public/app/AppWrapper.tsx +++ b/public/app/AppWrapper.tsx @@ -60,7 +60,7 @@ export class AppWrapper extends Component { $('.preloader').remove(); // clear any old icon caches - const cacheKeys = await window.caches.keys(); + const cacheKeys = (await window.caches?.keys()) ?? []; for (const key of cacheKeys) { if (key.startsWith('grafana-icon-cache') && key !== this.iconCacheID) { window.caches.delete(key);