Correctly handle when there are no unstable items in the documented crate
This commit is contained in:
parent
a6620a45bd
commit
cd79c7189d
1 changed files with 3 additions and 1 deletions
|
|
@ -2060,7 +2060,9 @@ class DocSearch {
|
|||
// Deprecated and unstable items and items with no description
|
||||
this.searchIndexDeprecated.set(crate, new RoaringBitmap(crateCorpus.c));
|
||||
this.searchIndexEmptyDesc.set(crate, new RoaringBitmap(crateCorpus.e));
|
||||
this.searchIndexUnstable.set(crate, new RoaringBitmap(crateCorpus.u));
|
||||
if (crateCorpus.u !== undefined && crateCorpus.u !== null) {
|
||||
this.searchIndexUnstable.set(crate, new RoaringBitmap(crateCorpus.u));
|
||||
}
|
||||
let descIndex = 0;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue