diff --git a/packages/strapi-plugin-content-type-builder/admin/src/components/PopUpRelations/index.js b/packages/strapi-plugin-content-type-builder/admin/src/components/PopUpRelations/index.js index bcc8a12a6c..48b13a7491 100644 --- a/packages/strapi-plugin-content-type-builder/admin/src/components/PopUpRelations/index.js +++ b/packages/strapi-plugin-content-type-builder/admin/src/components/PopUpRelations/index.js @@ -222,8 +222,8 @@ class PopUpRelations extends React.Component { ); renderModalBodyRelations = () => { - const pluginValue = get(this.props.values, ['params', 'pluginValue']); - const header = !isEmpty(pluginValue) && pluginValue !== ' ' + const pluginValue = get(this.props.values, ['params', 'pluginValue'], ''); + const header = !isEmpty(pluginValue.trim()) ? get(this.props.dropDownItems, [ findIndex(this.props.dropDownItems, { name: get(this.props.values, ['params', 'target']),