fix: update table_name and schema on dataset editor (#11218)

* fix dataset editor for updating table_name and schema

* update test

* remove table_name from restrict list

* fix pylint

* fix cypress test

* fix test
This commit is contained in:
Lily Kuang
2020-10-20 09:38:57 -07:00
committed by GitHub
parent 7369039713
commit 9f8d0e7a06
4 changed files with 6 additions and 3 deletions

View File

@@ -89,6 +89,9 @@ const DatasourceModal: FunctionComponent<DatasourceModalProps> = ({
postPayload: {
data: {
...currentDatasource,
schema:
currentDatasource.databaseSelector?.schema ||
currentDatasource.tableSelector?.schema,
metrics: currentDatasource?.metrics?.map(
(metric: Record<string, unknown>) => ({
...metric,