mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix(dashboard): update native filter info in metadata is not updated (#17842)
This commit is contained in:
parent
cfd851aa13
commit
ec48dd5c40
@ -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) {
|
||||
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user