mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
fix: Columns not passing properly from SQL Lab to Explore (#20975)
* debugging columns * Clean up code * Fix test
This commit is contained in:
committed by
GitHub
parent
755f654cc6
commit
d42cf4e4c9
@@ -26,9 +26,10 @@ import { Form, FormItem } from 'src/components/Form';
|
||||
import Modal from 'src/components/Modal';
|
||||
import SaveDatasetActionButton from 'src/SqlLab/components/SaveDatasetActionButton';
|
||||
import { SaveDatasetModal } from 'src/SqlLab/components/SaveDatasetModal';
|
||||
import { getDatasourceAsSaveableDataset } from 'src/utils/datasourceUtils';
|
||||
|
||||
interface SaveQueryProps {
|
||||
query: any;
|
||||
query: QueryPayload;
|
||||
defaultLabel: string;
|
||||
onSave: (arg0: QueryPayload) => void;
|
||||
onUpdate: (arg0: QueryPayload) => void;
|
||||
@@ -177,7 +178,7 @@ export default function SaveQuery({
|
||||
onHide={() => setShowSaveDatasetModal(false)}
|
||||
buttonTextOnSave={t('Save & Explore')}
|
||||
buttonTextOnOverwrite={t('Overwrite & Explore')}
|
||||
datasource={query}
|
||||
datasource={getDatasourceAsSaveableDataset(query)}
|
||||
/>
|
||||
<Modal
|
||||
className="save-query-modal"
|
||||
|
||||
Reference in New Issue
Block a user