Skip to content

Commit

Permalink
Fix up getTableMapForDashboard selector (#230)
Browse files Browse the repository at this point in the history
Was returning all dashboard data instead of just the table map data
  • Loading branch information
mofojed authored Oct 12, 2021
1 parent 520f49c commit 0b46f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dashboard-core-plugins/src/redux/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getInputFiltersForDashboard = (store, dashboardId) =>
* @returns {Map<string, Table>} 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
Expand Down

0 comments on commit 0b46f78

Please sign in to comment.