From ed8424709d24eaae48583f96c7a4303bf775a838 Mon Sep 17 00:00:00 2001 From: mikebender Date: Tue, 12 Oct 2021 18:21:37 -0400 Subject: [PATCH] Fix up getTableMapForDashboard selector Was returning all dashboard data instead of just the table map data --- packages/dashboard-core-plugins/src/redux/selectors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dashboard-core-plugins/src/redux/selectors.js b/packages/dashboard-core-plugins/src/redux/selectors.js index 27ac9a4e2b..560a1af929 100644 --- a/packages/dashboard-core-plugins/src/redux/selectors.js +++ b/packages/dashboard-core-plugins/src/redux/selectors.js @@ -26,7 +26,7 @@ export const getInputFiltersForDashboard = (store, dashboardId) => * @returns {Map} Map from panel ID to the table used in that panel */ export const getTableMapForDashboard = (store, dashboardId) => - getDashboardData(store, dashboardId) ?? EMPTY_MAP; + getDashboardData(store, dashboardId).tableMap ?? EMPTY_MAP; /** * @param {Store} store The redux store