You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ly...@apache.org on 2023/01/19 16:36:12 UTC
[superset] 18/21: Add table_name query to /chart/add/ redirect
This is an automated email from the ASF dual-hosted git repository.
lyndsi pushed a commit to branch lyndsi/enable-dataset-creation
in repository https://gitbox.apache.org/repos/asf/superset.git
commit bc91531e01e5884ac13c6fe78356a567e695997e
Author: lyndsiWilliams <kc...@gmail.com>
AuthorDate: Thu Jan 12 18:45:59 2023 -0600
Add table_name query to /chart/add/ redirect
---
.../src/views/CRUD/data/dataset/AddDataset/Footer/index.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset-frontend/src/views/CRUD/data/dataset/AddDataset/Footer/index.tsx b/superset-frontend/src/views/CRUD/data/dataset/AddDataset/Footer/index.tsx
index bc6bbc1e48..12fe94d491 100644
--- a/superset-frontend/src/views/CRUD/data/dataset/AddDataset/Footer/index.tsx
+++ b/superset-frontend/src/views/CRUD/data/dataset/AddDataset/Footer/index.tsx
@@ -100,7 +100,7 @@ function Footer({
if (typeof response === 'number') {
logEvent(LOG_ACTIONS_DATASET_CREATION_SUCCESS, datasetObject);
// When a dataset is created the response we get is its ID number
- history.push('/chart/add/');
+ history.push(`/chart/add/?dataset=${datasetObject.table_name}`);
}
});
}