NIHVIVO-3340 Test not only for empty individuals, but also for nil individuals.
This commit is contained in:
parent
4986c36299
commit
7976e3fd37
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ browseByVClass.getIndividuals = function(vclassUri, alpha, page, scroll) {
|
||||||
|
|
||||||
// Catch exceptions when empty individuals result set is returned
|
// Catch exceptions when empty individuals result set is returned
|
||||||
// This is very likely to happen now since we don't have individual counts for each letter and always allow the result set to be filtered by any letter
|
// This is very likely to happen now since we don't have individual counts for each letter and always allow the result set to be filtered by any letter
|
||||||
if ( results.individuals.length == 0 ) {
|
if ( !results.individuals || results.individuals.length == 0 ) {
|
||||||
browseByVClass.emptyResultSet(results.vclass, alpha)
|
browseByVClass.emptyResultSet(results.vclass, alpha)
|
||||||
} else {
|
} else {
|
||||||
var vclassName = results.vclass.name;
|
var vclassName = results.vclass.name;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue