diff --git a/packages/core/client/src/collection-manager/CollectionManagerProvider.tsx b/packages/core/client/src/collection-manager/CollectionManagerProvider.tsx index a63782566..213d2ac2e 100644 --- a/packages/core/client/src/collection-manager/CollectionManagerProvider.tsx +++ b/packages/core/client/src/collection-manager/CollectionManagerProvider.tsx @@ -17,7 +17,7 @@ export const CollectionManagerProvider: React.FC = (pr value={{ ...ctx, service, - interfaces: { ...defaultInterfaces, ...interfaces }, + interfaces: { ...defaultInterfaces, ...ctx.interfaces, ...interfaces }, templates: { ...defaultTemplates, ...templates }, collections, refreshCM, diff --git a/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx b/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx index 60c88c7c4..482d4047b 100644 --- a/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx @@ -14,7 +14,7 @@ import { useCollectionManager } from '../hooks'; import { IField } from '../interfaces/types'; import { useResourceActionContext, useResourceContext } from '../ResourceActionProvider'; import * as components from './components'; -import { options } from './interfaces'; +import { getOptions } from './interfaces'; const getSchema = (schema: IField, record: any, compile) => { if (!schema) { @@ -152,7 +152,7 @@ export const AddFieldAction = (props) => { const { availableFieldInterfaces } = getTemplate(record.template) || {}; const { exclude, include } = availableFieldInterfaces || {}; const optionArr = []; - options.forEach((v) => { + getOptions().forEach((v) => { if (v.key === 'systemInfo') { optionArr.push({ ...v,