mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix: Save and test error message does not persist across datasource instance settings anymore
This commit is contained in:
parent
b1c98f7119
commit
ce50168b70
@ -23,6 +23,7 @@ import {
|
||||
} from './actions';
|
||||
import { DataSourcesRoutesContext } from './contexts';
|
||||
import { getDataSourceLoadingNav, buildNavModel, getDataSourceNav } from './navModel';
|
||||
import { initialDataSourceSettingsState } from './reducers';
|
||||
import { getDataSource, getDataSourceMeta } from './selectors';
|
||||
|
||||
export const useInitDataSourceSettings = (uid: string) => {
|
||||
@ -34,7 +35,7 @@ export const useInitDataSourceSettings = (uid: string) => {
|
||||
return function cleanUp() {
|
||||
dispatch(
|
||||
cleanUpAction({
|
||||
cleanupAction: (state) => state.dataSourceSettings,
|
||||
cleanupAction: (state) => (state.dataSourceSettings = initialDataSourceSettingsState),
|
||||
})
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user