mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
chore(sqllab): typescript for getInitialState (#25047)
This commit is contained in:
@@ -225,7 +225,7 @@ const SqlEditor = ({
|
||||
const { database, latestQuery, hideLeftBar } = useSelector(
|
||||
({ sqlLab: { unsavedQueryEditor, databases, queries } }) => {
|
||||
let { dbId, latestQueryId, hideLeftBar } = queryEditor;
|
||||
if (unsavedQueryEditor.id === queryEditor.id) {
|
||||
if (unsavedQueryEditor?.id === queryEditor.id) {
|
||||
dbId = unsavedQueryEditor.dbId || dbId;
|
||||
latestQueryId = unsavedQueryEditor.latestQueryId || latestQueryId;
|
||||
hideLeftBar = unsavedQueryEditor.hideLeftBar || hideLeftBar;
|
||||
|
||||
Reference in New Issue
Block a user