feat(sqllab): save query parameters in database (#21682)

This commit is contained in:
Mayur
2022-10-07 12:49:14 +05:30
committed by GitHub
parent 882bfb67ae
commit 61319fd759
11 changed files with 132 additions and 61 deletions

View File

@@ -56,8 +56,8 @@ export default function sqlLabReducer(state = {}, action) {
return addToArr(newState, 'queryEditors', action.queryEditor);
},
[actions.QUERY_EDITOR_SAVED]() {
const { query, result } = action;
const existing = state.queryEditors.find(qe => qe.id === query.id);
const { query, result, clientId } = action;
const existing = state.queryEditors.find(qe => qe.id === clientId);
return alterInArr(
state,
'queryEditors',