Skip to content

Commit

Permalink
fix: Cannot expand initially hidden SQL Lab tab (#26279)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Dec 15, 2023
1 parent 91e9705 commit 9b21c93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions superset-frontend/src/SqlLab/components/SqlEditor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ import {
} from 'src/utils/localStorageHelpers';
import { EmptyStateBig } from 'src/components/EmptyState';
import getBootstrapData from 'src/utils/getBootstrapData';
import { isEmpty } from 'lodash';
import { isBoolean, isEmpty } from 'lodash';
import TemplateParamsEditor from '../TemplateParamsEditor';
import SouthPane from '../SouthPane';
import SaveQuery from '../SaveQuery';
Expand Down Expand Up @@ -228,7 +228,9 @@ const SqlEditor = ({
if (unsavedQueryEditor.id === queryEditor.id) {
dbId = unsavedQueryEditor.dbId || dbId;
latestQueryId = unsavedQueryEditor.latestQueryId || latestQueryId;
hideLeftBar = unsavedQueryEditor.hideLeftBar || hideLeftBar;
hideLeftBar = isBoolean(unsavedQueryEditor.hideLeftBar)
? unsavedQueryEditor.hideLeftBar
: hideLeftBar;
}
return {
database: databases[dbId],
Expand Down

0 comments on commit 9b21c93

Please sign in to comment.