Fix datasource name getting focused after save while creating new datasource (#1793)
This commit is contained in:
parent
732dc632cd
commit
32482d4826
|
|
@ -83,6 +83,14 @@ const datasourcePaneReducer = createReducer(initialState, {
|
|||
newDatasource: action.payload.id,
|
||||
};
|
||||
},
|
||||
[ReduxActionTypes.SAVE_DATASOURCE_NAME_SUCCESS]: (
|
||||
state: DatasourcePaneReduxState,
|
||||
) => {
|
||||
return {
|
||||
...state,
|
||||
newDatasource: "",
|
||||
};
|
||||
},
|
||||
[ReduxActionTypes.UPDATE_DATASOURCE_SUCCESS]: (
|
||||
state: DatasourcePaneReduxState,
|
||||
action: ReduxAction<Datasource>,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user