error message fix
Issue-ID: SDC-1269
Change-Id: I4f0f2545e1f491687e193e7dbe00e8efd94fe18a
Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
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 e94087c..4324930 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 @@
<Input
label={i18n('Network Package')}
overlayPos="top"
- isValid={genericFieldInfo.onboardingMethod.isValid}
checked={
onboardingMethod ===
onboardingMethodConst.NETWORK_PACKAGE
}
- errorText={genericFieldInfo.onboardingMethod.errorText}
onChange={() =>
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 810337d..c9693d4 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 @@
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 @@
<Input
label={i18n('Network Package')}
overlayPos="top"
- isValid={genericFieldInfo.onboardingMethod.isValid}
checked={
onboardingMethod ===
onboardingMethodConst.NETWORK_PACKAGE