Drilldown: Fix js crash when using http (#105646)

Update AppWrapper.tsx
This commit is contained in:
Saya
2025-06-18 08:57:28 +02:00
committed by GitHub
parent 9905d3447c
commit 806068b9de
+1 -1
View File
@@ -60,7 +60,7 @@ export class AppWrapper extends Component<AppWrapperProps, AppWrapperState> {
$('.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);