mirror of
https://github.com/apache/superset.git
synced 2026-07-19 05:05:39 +00:00
fix(sqllab): inactive leftbar selector on empty state (#38833)
This commit is contained in:
@@ -42,7 +42,10 @@ function alterUnsavedQueryEditorState(
|
||||
id: string,
|
||||
silent = false,
|
||||
): Partial<SqlLabState> {
|
||||
if (state.tabHistory[state.tabHistory.length - 1] !== id) {
|
||||
if (
|
||||
state.tabHistory.length > 0 &&
|
||||
state.tabHistory[state.tabHistory.length - 1] !== id
|
||||
) {
|
||||
const { queryEditors } = alterInArr(
|
||||
state,
|
||||
'queryEditors',
|
||||
|
||||
Reference in New Issue
Block a user