chore: consolidate sqllab store into SPA store (#25088)

This commit is contained in:
JUST.in DO IT
2023-08-30 16:09:57 -07:00
committed by GitHub
parent eeecd59c9d
commit 846c79ef55
7 changed files with 152 additions and 98 deletions

View File

@@ -17,7 +17,6 @@
* under the License.
*/
import { normalizeTimestamp, QueryState, t } from '@superset-ui/core';
import getInitialState from './getInitialState';
import * as actions from '../actions/sqlLab';
import { now } from '../../utils/dates';
import {
@@ -165,7 +164,7 @@ export default function sqlLabReducer(state = {}, action) {
return { ...state, queries: newQueries };
},
[actions.RESET_STATE]() {
return { ...getInitialState() };
return { ...action.sqlLabInitialState };
},
[actions.MERGE_TABLE]() {
const at = { ...action.table };