summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/onboarding
diff options
context:
space:
mode:
authormiriame <miriam.eini@amdocs.com>2017-10-22 15:14:44 +0300
committermiriame <miriam.eini@amdocs.com>2017-10-22 15:14:44 +0300
commit6511b4b016accbac5b221b8f8f46db6a89255a57 (patch)
treee5b8ca16dfb238dc4057f657816bc384f1815edd /openecomp-ui/src/sdc-app/onboarding
parenta287b5148248fb02dd72c816b3a7fea73a4ce918 (diff)
parse multilple error messages in separate lines
Change-Id: I7e17ea7b4fdd31fe3b9607f9896b077bb8d9f451 Issue-ID: SDC-488 Signed-off-by: miriame <miriam.eini@amdocs.com>
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding')
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProductActionHelper.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProductActionHelper.js b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProductActionHelper.js
index 41306a1c1a..db7afd27d9 100644
--- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProductActionHelper.js
+++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProductActionHelper.js
@@ -114,7 +114,7 @@ function objToString(obj) {
}
}
}
- return str;
+ return str.replace(/\n$/, '');
}
function parseUploadErrorMsg(error) {
@@ -124,7 +124,7 @@ function parseUploadErrorMsg(error) {
message += objToString(error[key]) + '\n';
}
}
- return message;
+ return message.replace(/\n$/, '');
}
function fetchSoftwareProductCategories(dispatch) {