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 22, 2021
1 parent cfd851a commit ec48dd5
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));

This comment has been minimized.

Copy link
@Martha9927

Martha9927 Dec 23, 2021

Verán Jesus
IMG-20211209-WA0016

Expand Down

1 comment on commit ec48dd5

@Martha9927
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesante

Please sign in to comment.