mirror of
https://github.com/apache/superset.git
synced 2026-07-19 13:15:49 +00:00
fix(sqllab): invalid dump sql shown after closing tab (#27295)
This commit is contained in:
@@ -152,7 +152,10 @@ export default function sqlLabReducer(state = {}, action) {
|
||||
|
||||
newState = {
|
||||
...newState,
|
||||
tabHistory,
|
||||
tabHistory:
|
||||
tabHistory.length === 0 && newState.queryEditors.length > 0
|
||||
? newState.queryEditors.slice(-1).map(qe => qe.id)
|
||||
: tabHistory,
|
||||
tables,
|
||||
queries,
|
||||
unsavedQueryEditor: {
|
||||
|
||||
Reference in New Issue
Block a user