Skip to content

Commit

Permalink
fix(dashboard): update native filter info in metadata is not updated (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenLYZ authored and shcoderAlex committed Feb 7, 2022
1 parent 6febe9c commit ba3f82f
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 ba3f82f

Please sign in to comment.