diff --git a/packages/plugins/file-manager/src/client/interfaces/attachment.ts b/packages/plugins/file-manager/src/client/interfaces/attachment.ts index 20baa187d..0b108fb46 100644 --- a/packages/plugins/file-manager/src/client/interfaces/attachment.ts +++ b/packages/plugins/file-manager/src/client/interfaces/attachment.ts @@ -27,6 +27,9 @@ export const attachment: IField = { schema['x-component-props']['size'] = 'small'; } + if (!schema['x-component-props']) { + schema['x-component-props'] = {}; + } schema['x-component-props']['action'] = `${field.target}:create${ field.storage ? `?attachementField=${field.collectionName}.${field.name}` : '' }`;