Error in JS logs when click in the background
[clamp.git] / src / main / resources / META-INF / resources / designer / scripts / CldsModelService.js
index 86fedc9..8bc6e32 100644 (file)
@@ -25,12 +25,17 @@ 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,
           'policy': PolicyWindow,
           'collector': CollectorsWindow,
           'vescollector': VesCollectorWindow,
+          'holmes': HolmesWindow,
       };
 
       key = name.split('_')[0].toLowerCase()