mirror of
https://github.com/apache/superset.git
synced 2026-04-24 10:35:01 +00:00
fix: add form data for empty state control to save dataset (#21944)
This commit is contained in:
committed by
GitHub
parent
7f563cf92d
commit
d3f930a557
@@ -66,6 +66,12 @@ export interface ISimpleColumn {
|
||||
is_dttm?: boolean | null;
|
||||
}
|
||||
|
||||
export type Database = {
|
||||
backend: string;
|
||||
id: number;
|
||||
parameter: object;
|
||||
};
|
||||
|
||||
export interface ISaveableDatasource {
|
||||
columns: ISimpleColumn[];
|
||||
name: string;
|
||||
@@ -73,6 +79,7 @@ export interface ISaveableDatasource {
|
||||
sql: string;
|
||||
templateParams?: string | object | null;
|
||||
schema?: string | null;
|
||||
database?: Database;
|
||||
}
|
||||
|
||||
interface SaveDatasetModalProps {
|
||||
@@ -283,7 +290,7 @@ export const SaveDatasetModal = ({
|
||||
createDatasource({
|
||||
schema: datasource.schema,
|
||||
sql: datasource.sql,
|
||||
dbId: datasource.dbId,
|
||||
dbId: datasource.dbId || datasource?.database?.id,
|
||||
templateParams,
|
||||
datasourceName: datasetName,
|
||||
columns: selectedColumns,
|
||||
|
||||
Reference in New Issue
Block a user