mirror of
https://github.com/apache/superset.git
synced 2026-05-10 18:35:40 +00:00
chore(sqllab): typescript for getInitialState (#25047)
This commit is contained in:
@@ -29,7 +29,7 @@ export default function useQueryEditor<T extends keyof QueryEditor>(
|
||||
pick(
|
||||
{
|
||||
...queryEditors.find(({ id }) => id === sqlEditorId),
|
||||
...(sqlEditorId === unsavedQueryEditor.id && unsavedQueryEditor),
|
||||
...(sqlEditorId === unsavedQueryEditor?.id && unsavedQueryEditor),
|
||||
},
|
||||
['id'].concat(attributes),
|
||||
) as Pick<QueryEditor, T | 'id'>,
|
||||
|
||||
Reference in New Issue
Block a user