fix: resolves empty variables issue for imported dashboards (#1808)

This commit is contained in:
Amol Umbark 2022-12-05 16:48:11 +05:30 committed by GitHub
parent 88fa3b7699
commit a46f074e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ export const getDashboardVariables = (): Record<string, unknown> => {
} = store.getState();
const [selectedDashboard] = dashboards;
const {
data: { variables },
data: { variables = {} },
} = selectedDashboard;
const minMax = GetMinMax(globalTime.selectedTime, [