Added customType for custom fields

This commit is contained in:
Elio Struyf
2023-08-21 11:29:07 +02:00
parent 0915b1f658
commit 54378dd1a9
8 changed files with 39 additions and 18 deletions
@@ -508,8 +508,8 @@ export const WrapperField: React.FunctionComponent<IWrapperFieldProps> = ({
/>
</FieldBoundary>
);
} else if (customFields.find(f => f.name === field.type)) {
const fieldData = customFields.find(f => f.name === field.type);
} else if (field.type === 'customField') {
const fieldData = customFields.find(f => f.name === field.customType);
if (fieldData) {
return (
<CustomField