Drilldown: Fix js crash when using http (#105646)
Update AppWrapper.tsx
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user