Merge "confirmation msg for delete FG doesn't appear"
authorVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>
Wed, 1 Nov 2017 15:07:19 +0000 (15:07 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 1 Nov 2017 15:07:19 +0000 (15:07 +0000)
openecomp-ui/src/nfvo-components/modal/GlobalModal.js

index f282046..4e7a1a1 100644 (file)
@@ -114,7 +114,9 @@ export class  GlobalModalView extends React.Component {
                                <Modal.Body>
                                        {ComponentToRender ?
                                                <ComponentToRender {...modalComponentProps}/> :
-                                               <div> {msg && msg.split('\n').map(txt => <span> {txt} <br/> </span>)} </div>
+                                               msg && typeof msg === 'string' ?
+                                                       <div> {msg.split('\n').map(txt => <span> {txt} <br/> </span>)} </div> :
+                                                       msg
                                        }
                                </Modal.Body>
                                {(onConfirmed || onDeclined || type !== typeEnum.DEFAULT) &&