fix(plugin-fm): fix attachment field param typo (#2577)

This commit is contained in:
Junyi 2023-08-31 14:44:58 +07:00 committed by GitHub
parent d56cc66ef9
commit ec3a720aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ export const attachment: IField = {
schema['x-component-props'] = {};
}
schema['x-component-props']['action'] = `${field.target}:create${
field.storage ? `?attachementField=${field.collectionName}.${field.name}` : ''
field.storage ? `?attachmentField=${field.collectionName}.${field.name}` : ''
}`;
},
initialize: (values: any) => {