mirror of
https://github.com/apache/superset.git
synced 2026-04-22 17:45:21 +00:00
chore(sqllab): typescript for getInitialState (#25047)
This commit is contained in:
@@ -55,7 +55,7 @@ const SqlEditorTabHeader: React.FC<Props> = ({ queryEditor }) => {
|
||||
const qe = useSelector<SqlLabRootState, QueryEditor>(
|
||||
({ sqlLab: { unsavedQueryEditor } }) => ({
|
||||
...queryEditor,
|
||||
...(queryEditor.id === unsavedQueryEditor.id && unsavedQueryEditor),
|
||||
...(queryEditor.id === unsavedQueryEditor?.id && unsavedQueryEditor),
|
||||
}),
|
||||
shallowEqual,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user