Skip to content

Commit

Permalink
fix(dashboard): missing parents in directPathToFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Mar 18, 2021
1 parent adc247b commit fa4784e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/dashboard/actions/dashboardState.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export function saveDashboardRequest(data, id, saveType) {
Object.values(dashboardFilters).forEach(filter => {
const { chartId } = filter;
const componentId = filter.directPathToFilter.slice().pop();
const directPathToFilter = (layout[componentId].parents || []).slice();
const directPathToFilter = (layout[componentId]?.parents || []).slice();
directPathToFilter.push(componentId);
dispatch(updateDirectPathToFilter(chartId, directPathToFilter));
});
Expand Down

0 comments on commit fa4784e

Please sign in to comment.