Skip to content

Commit

Permalink
fix(dashboard): update native filter info in metadata is not updated
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenLYZ committed Dec 21, 2021
1 parent 5b0aa27 commit 629e3db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions superset-frontend/src/dashboard/actions/dashboardState.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import {
removeFilter,
updateDirectPathToFilter,
} from './dashboardFilters';
import { SET_FILTER_CONFIG_COMPLETE } from './nativeFilters';

export const SET_UNSAVED_CHANGES = 'SET_UNSAVED_CHANGES';
export function setUnsavedChanges(hasUnsavedChanges) {
Expand Down Expand Up @@ -286,6 +287,12 @@ export function saveDashboardRequest(data, id, saveType) {
chartConfiguration: metadata.chart_configuration,
});
}
if (metadata.native_filter_configuration) {
dispatch({
type: SET_FILTER_CONFIG_COMPLETE,
filterConfig: metadata.native_filter_configuration,
});
}
}
if (lastModifiedTime) {
dispatch(saveDashboardRequestSuccess(lastModifiedTime));
Expand Down

0 comments on commit 629e3db

Please sign in to comment.