mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
fix(dashlist): avoid null ref errors
This commit is contained in:
parent
77f93886da
commit
c6768a93c8
@ -31,8 +31,8 @@ export class ImpressionsStore {
|
||||
}
|
||||
|
||||
getDashboardOpened() {
|
||||
var k = store.get("dashboard_impressions");
|
||||
return JSON.parse(k);
|
||||
var impressions = store.get("dashboard_impressions");
|
||||
return JSON.parse(impressions || "[]");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user