Skip to content
Snippets Groups Projects
Commit a85649c5 authored by barillac's avatar barillac
Browse files

bugfix for blank screen when opening samples

SVN: 33540
parent 997b00d4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment