Merge "Error in JS logs when click in the background"
authorSébastien Determe <sd378r@intl.att.com>
Thu, 7 Sep 2017 08:55:53 +0000 (08:55 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 7 Sep 2017 08:55:53 +0000 (08:55 +0000)
src/main/resources/META-INF/resources/designer/scripts/CldsModelService.js

index 12d2d05..8bc6e32 100644 (file)
@@ -25,6 +25,10 @@ app.service('cldsModelService', ['alertService','$http', '$q', function (alertSe
   
   function checkIfElementType(name){
       //This will open the methods located in the app.js
+      if (undefined == name) {
+          return
+      }
+      
       mapping = {
           'stringmatch': StringMatchWindow,
           'tca': TCAWindow,