mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user