mirror of
https://github.com/apache/superset.git
synced 2026-04-23 01:55:09 +00:00
fix(sqllab): Reduce flushing caused by ID updates (#34720)
This commit is contained in:
@@ -255,18 +255,6 @@ describe('sqlLabReducer', () => {
|
||||
expect(newState.queryEditors[index].id).toEqual('updatedNewId');
|
||||
expect(newState.queryEditors[index]).toEqual(newQueryEditor);
|
||||
});
|
||||
it('should migrate tab history by new query editor id', () => {
|
||||
expect(newState.tabHistory).toContain(qe.id);
|
||||
const action = {
|
||||
type: actions.MIGRATE_TAB_HISTORY,
|
||||
oldId: qe.id,
|
||||
newId: 'updatedNewId',
|
||||
};
|
||||
newState = sqlLabReducer(newState, action);
|
||||
|
||||
expect(newState.tabHistory).toContain('updatedNewId');
|
||||
expect(newState.tabHistory).not.toContain(qe.id);
|
||||
});
|
||||
it('should clear the destroyed query editors', () => {
|
||||
const expectedQEId = '1233289';
|
||||
const action = {
|
||||
|
||||
Reference in New Issue
Block a user