error message fix 07/44907/2
authorsvishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Thu, 26 Apr 2018 15:29:04 +0000 (18:29 +0300)
committerEinav Keidar <einavw@amdocs.com>
Mon, 30 Apr 2018 06:41:03 +0000 (06:41 +0000)
Issue-ID: SDC-1269
Change-Id: I4f0f2545e1f491687e193e7dbe00e8efd94fe18a
Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
openecomp-ui/src/sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreationView.jsx
openecomp-ui/src/sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreationViewWithFilter.jsx

index e94087c..4324930 100644 (file)
@@ -286,12 +286,10 @@ const OnboardingProcedure = ({
                 <Input
                     label={i18n('Network Package')}
                     overlayPos="top"
-                    isValid={genericFieldInfo.onboardingMethod.isValid}
                     checked={
                         onboardingMethod ===
                         onboardingMethodConst.NETWORK_PACKAGE
                     }
-                    errorText={genericFieldInfo.onboardingMethod.errorText}
                     onChange={() =>
                         onDataChanged(
                             {
index 810337d..c9693d4 100644 (file)
@@ -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 = ({
                 <Input
                     label={i18n('Network Package')}
                     overlayPos="top"
-                    isValid={genericFieldInfo.onboardingMethod.isValid}
                     checked={
                         onboardingMethod ===
                         onboardingMethodConst.NETWORK_PACKAGE