Skip to content
Snippets Groups Projects
Commit 310cfe56 authored by Tony Salomone's avatar Tony Salomone
Browse files

Remove code that is causing fields to disappear on training config tab

parent 4a0c5e68
No related branches found
No related tags found
No related merge requests found
...@@ -462,11 +462,6 @@ export default function DynamicPluginForm({ ...@@ -462,11 +462,6 @@ export default function DynamicPluginForm({
} }
}); });
// if key is in parsedData.parameters but not in config then delete the key from parsedData.parameters // if key is in parsedData.parameters but not in config then delete the key from parsedData.parameters
Object.keys(parsedData.parameters).forEach((key) => {
if (!(key in config)) {
delete parsedData.parameters[key];
}
});
//Schema takes in data as a JSON string //Schema takes in data as a JSON string
setConfigData(JSON.stringify(parsedData)); setConfigData(JSON.stringify(parsedData));
} else if (data) { } else if (data) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment