confirmation msg for delete FG doesn't appear 81/20781/1
authormiriame <miriam.eini@amdocs.com>
Thu, 26 Oct 2017 11:31:47 +0000 (14:31 +0300)
committermiriame <miriam.eini@amdocs.com>
Thu, 26 Oct 2017 11:35:43 +0000 (14:35 +0300)
Change-Id: I4c14bf2e9e6073d2a436b3ec1c6b395ec53c12fc
Issue-ID: SDC-540
Signed-off-by: miriame <miriam.eini@amdocs.com>
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) &&