From a341ef0ffc7984e18db15714429eef0d2a0f4f06 Mon Sep 17 00:00:00 2001 From: svishnev Date: Thu, 26 Apr 2018 18:29:04 +0300 Subject: error message fix Issue-ID: SDC-1269 Change-Id: I4f0f2545e1f491687e193e7dbe00e8efd94fe18a Signed-off-by: svishnev --- .../softwareProduct/creation/SoftwareProductCreationView.jsx | 2 -- .../creation/SoftwareProductCreationViewWithFilter.jsx | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'openecomp-ui/src') diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreationView.jsx b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreationView.jsx index e94087cc80..432493065f 100644 --- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreationView.jsx +++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreationView.jsx @@ -286,12 +286,10 @@ const OnboardingProcedure = ({ onDataChanged( { diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreationViewWithFilter.jsx b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreationViewWithFilter.jsx index 810337dbed..c9693d4f93 100644 --- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreationViewWithFilter.jsx +++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreationViewWithFilter.jsx @@ -267,7 +267,9 @@ class SoftwareProductCreationView extends React.Component { validateIsNameUnique = e => { const value = e.target.value; - this.props.isNameUnique(value, 'name', SP_CREATION_FORM_NAME); + if (value) { + this.props.isNameUnique(value, 'name', SP_CREATION_FORM_NAME); + } }; validate() { @@ -286,7 +288,6 @@ const OnboardingProcedure = ({