diff options
author | Avi Gaffa <avi.gaffa@amdocs.com> | 2017-10-22 13:50:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-10-22 13:50:50 +0000 |
commit | 6ebd9c581142c2ca033c7bfba73b69ab6b378fee (patch) | |
tree | 6f4d022597844233716a683fa629b01a6345e29f /openecomp-ui/src/sdc-app | |
parent | c7026576d55cce40fb9928616ab63f5a73663238 (diff) | |
parent | 6511b4b016accbac5b221b8f8f46db6a89255a57 (diff) |
Merge "parse multilple error messages in separate lines"
Diffstat (limited to 'openecomp-ui/src/sdc-app')
-rw-r--r-- | openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProductActionHelper.js | 4 |
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) { |