mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 13:20:43 +00:00
Merge pull request #22 from Kingsrook/feature/CTLE-509-support-sending-custom-data-fields-to-deposco
Add posting 'other values' (e.g., for filtering) w/ possible values
This commit is contained in:
@ -133,6 +133,15 @@ function EntityForm(props: Props): JSX.Element
|
||||
for (let i = 0; i < formFields.length; i++)
|
||||
{
|
||||
formData.formFields[formFields[i].name] = formFields[i];
|
||||
|
||||
if (formFields[i].possibleValueProps)
|
||||
{
|
||||
formFields[i].possibleValueProps.otherValues = formFields[i].possibleValueProps.otherValues ?? new Map<string, any>();
|
||||
Object.keys(formFields).forEach((otherKey) =>
|
||||
{
|
||||
formFields[i].possibleValueProps.otherValues.set(otherKey, values[otherKey]);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (!Object.keys(formFields).length)
|
||||
|
Reference in New Issue
Block a user