UNPKG

strapi-plugin-content-manager

Version:

A powerful UI to easily manage your data.

14 lines (9 loc) 352 B
import { toLower } from 'lodash'; const checkIfAttributeIsDisplayable = attribute => { const type = attribute.type; if (type === 'relation') { return !toLower(attribute.relationType).includes('morph'); } return !['json', 'component', 'dynamiczone', 'richtext'].includes(type) && !!type; }; export default checkIfAttributeIsDisplayable;