From 2a8ef807d0a3b4cf28fb8d90cd2a1dbd3a01d662 Mon Sep 17 00:00:00 2001 From: cyril lopez Date: Wed, 10 Oct 2018 15:54:26 +0200 Subject: [PATCH] Fix PR feedback --- .../admin/src/components/PopUpRelations/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']),