How to use the @talend/react-forms/lib/UIForm/utils/properties.mutateValue function in @talend/react-forms

To help you get started, we’ve selected a few @talend/react-forms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Talend / ui / packages / containers / src / ComponentForm / kit / defaultRegistry.js View on Github external
function updateProperties({ body, trigger, properties }) {
	const targetPath = trigger.options[0].path;
	const schema = { key: targetPath.split('.') };
	const value = trigger.options[0].type === 'object' ? body : body.data;
	return {
		properties: mutateValue(properties, schema, value),
	};
}