mirror of
https://github.com/apache/superset.git
synced 2026-05-31 05:09:20 +00:00
fix: Undefined error when viewing query in Explore + visual fixes (#34869)
This commit is contained in:
committed by
GitHub
parent
836540e8c9
commit
5566eb8dd6
@@ -76,6 +76,7 @@ const ViewQueryModalFooter: FC<ViewQueryModalFooterProps> = (props: {
|
||||
return (
|
||||
<div>
|
||||
<Button
|
||||
buttonStyle="secondary"
|
||||
onClick={() => {
|
||||
props?.closeModal?.();
|
||||
props?.changeDatasource?.();
|
||||
@@ -83,11 +84,13 @@ const ViewQueryModalFooter: FC<ViewQueryModalFooterProps> = (props: {
|
||||
>
|
||||
{SAVE_AS_DATASET}
|
||||
</Button>
|
||||
<Button onClick={({ metaKey }) => openSQL(Boolean(metaKey))}>
|
||||
<Button
|
||||
buttonStyle="secondary"
|
||||
onClick={({ metaKey }) => openSQL(Boolean(metaKey))}
|
||||
>
|
||||
{OPEN_IN_SQL_LAB}
|
||||
</Button>
|
||||
<Button
|
||||
buttonStyle="primary"
|
||||
onClick={() => {
|
||||
props?.closeModal?.();
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user