fix(sqllab): perf regression on #21532 refactor (#21632)

This commit is contained in:
JUST.in DO IT
2022-10-02 20:00:53 -07:00
committed by GitHub
parent 157482955e
commit 8d1b7ecfde
16 changed files with 418 additions and 267 deletions

View File

@@ -449,7 +449,7 @@ export default function sqlLabReducer(state = {}, action) {
);
return {
...(action.queryEditor.id === state.unsavedQueryEditor.id
? alterInObject(
? alterInArr(
mergeUnsavedState,
'queryEditors',
action.queryEditor,