Commit 5bc01d755bde08832cfeb647cdaf0bab6bebb646

Authored by Elena.Budnik
1 parent 05ebfb1e
Exists in alias

check if window is open

Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
js/app/models/AliasNode.js
... ... @@ -117,7 +117,7 @@ Ext.define('amdaModel.AliasNode', {
117 117 // Replace alias by parameter name in active window
118 118 Ext.Array.each(myDesktopApp.paramModulesID, function(id){
119 119 var module = myDesktopApp.getLoadedModule(id);
120   - if (module) {
  120 + if (module && typeof module.getUiContent() !== "undefined") {
121 121 module.getUiContent().updateConstruct("#"+this.get('text'),this.get('id').substr(6));
122 122 }
123 123 }, this);
... ...
js/app/views/AliasUI.js
... ... @@ -86,7 +86,7 @@ Ext.define('amdaUI.AliasUI',{
86 86 updateConstruct : function(oldval,newval) {
87 87 Ext.Array.each(myDesktopApp.paramModulesID, function(id){
88 88 var targetModule = myDesktopApp.getLoadedModule(id);
89   - if (targetModule)
  89 + if (targetModule && typeof targetModule.getUiContent() !== "undefined")
90 90 targetModule.getUiContent().updateConstruct(oldval,newval);
91 91 });
92 92 },
... ...