Skip to content

Commit

Permalink
make syncing simple to advanced tab more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Büßemeyer authored and Michael Büßemeyer committed Nov 28, 2024
1 parent 7c6a5e8 commit 9739183
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export const syncDataSourceFields = (
// Copy from simple to advanced: update json
const dataSourceFromSimpleTab = form.getFieldValue("dataSource");
if (syncDatasetName) {
if (dataSourceFromSimpleTab.id == null) {
dataSourceFromSimpleTab.id = {};
}
dataSourceFromSimpleTab.id.name = form.getFieldValue(["dataset", "name"]);
}
form.setFieldsValue({
Expand Down

0 comments on commit 9739183

Please sign in to comment.