mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
chore: Use queryEditorId in SqlEditor child components (#21650)
This commit is contained in:
@@ -61,14 +61,14 @@ const Styles = styled.span`
|
||||
}
|
||||
`;
|
||||
|
||||
export default function SaveQuery({
|
||||
const SaveQuery = ({
|
||||
queryEditorId,
|
||||
onSave = () => {},
|
||||
onUpdate,
|
||||
saveQueryWarning = null,
|
||||
database,
|
||||
columns,
|
||||
}: SaveQueryProps) {
|
||||
}: SaveQueryProps) => {
|
||||
const queryEditor = useQueryEditor(queryEditorId, [
|
||||
'autorun',
|
||||
'name',
|
||||
@@ -230,4 +230,6 @@ export default function SaveQuery({
|
||||
</Modal>
|
||||
</Styles>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export default SaveQuery;
|
||||
|
||||
Reference in New Issue
Block a user