Skip to content
Snippets Groups Projects
Commit 110d6247 authored by juanf's avatar juanf
Browse files

Fixing bug, searching call don't behaves as expected for empty searches, now...

Fixing bug, searching call don't behaves as expected for empty searches, now this corner case is covered.

SVN: 34935
parent 2f51fcb8
No related branches found
No related tags found
No related merge requests found
...@@ -250,7 +250,11 @@ function ServerFacade(openbisServer) { ...@@ -250,7 +250,11 @@ function ServerFacade(openbisServer) {
operator : "MATCH_ALL_CLAUSES" operator : "MATCH_ALL_CLAUSES"
}; };
this.openbisServer.searchForSamples(sampleCriteria, callbackFunction) if(experiments.length === 0) {
callbackFunction({});
} else {
this.openbisServer.searchForSamples(sampleCriteria, callbackFunction);
}
} }
this.listPropertyTypes = function(callbackFunction) { this.listPropertyTypes = function(callbackFunction) {
......
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