fix(collection-manager): filter null

This commit is contained in:
chenos 2023-04-24 22:56:37 +08:00
parent c03d271481
commit e087be887b

View File

@ -359,13 +359,16 @@ export const CollectionFields = (props) => {
dataSource.push(
...inherits.map((key) => {
const collection = getCollection(key);
if (!collection) {
return;
}
return {
key,
title: `${t('Inherited fields')} - ` + compile(collection?.title),
inherit: true,
fields: collection?.fields || [],
};
}),
}).filter(Boolean),
);
const resourceActionProps = {