Skip to content
Snippets Groups Projects
Commit dfe461ba authored by deep1401's avatar deep1401
Browse files

Push fix for correcting default values

parent 61768ad8
No related branches found
No related tags found
No related merge requests found
......@@ -466,8 +466,8 @@ export default function DynamicPluginForm({
enumArray.unshift(enumArray.splice(index, 1)[0]);
}
parsedData.parameters[key].enum = enumArray;
parsedData.parameters[key].default = config[key];
}
parsedData.parameters[key].default = config[key];
}
});
// Delete all keys in parsedData.parameters that start with tflabcustomui_
......@@ -485,7 +485,6 @@ export default function DynamicPluginForm({
}, [plugin, experimentInfo, config, data]);
const schema = useMemo(() => getSchema(configData), [configData]);
console.log("SCHEMA", schema);
/* Below we wait for "configData" to be sure that defaults are set before rendering
if we don't do this, then the form is rendered twice and Select elements will not
honour the second settings for default Value */
......
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