diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/legacy/Inspector.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/legacy/Inspector.js index 1e895407d7ba4608a30176542546b07113f748cc..237e51080c6074da2371ad289a535a63ecd463a9 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/legacy/Inspector.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/legacy/Inspector.js @@ -44,6 +44,11 @@ function Inspector(serverFacade, containerId, profile) { } this.containsByPermId = function(permId) { + //Bugfix Hack to avoid blank screens + if(!this.inspectedSamples) { + this.inspectedSamples = []; + } + for(var i = 0; i < this.inspectedSamples.length; i++) { if(this.inspectedSamples[i].permId === permId) { return i; @@ -53,6 +58,11 @@ function Inspector(serverFacade, containerId, profile) { } this.containsSample = function(sample) { + //Bugfix Hack to avoid blank screens + if(!this.inspectedSamples) { + this.inspectedSamples = []; + } + for(var i = 0; i < this.inspectedSamples.length; i++) { if(this.inspectedSamples[i].permId === sample.permId) { return i;