fix(plugin-fm): fix error when add attachment field to manual form assigned values (#2503)

This commit is contained in:
Junyi 2023-08-22 19:56:12 +07:00 committed by GitHub
parent 0fe5bdc859
commit 96caf9befa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,9 @@ export const attachment: IField = {
schema['x-component-props']['size'] = 'small'; schema['x-component-props']['size'] = 'small';
} }
if (!schema['x-component-props']) {
schema['x-component-props'] = {};
}
schema['x-component-props']['action'] = `${field.target}:create${ schema['x-component-props']['action'] = `${field.target}:create${
field.storage ? `?attachementField=${field.collectionName}.${field.name}` : '' field.storage ? `?attachementField=${field.collectionName}.${field.name}` : ''
}`; }`;