Correctly handle when there are no unstable items in the documented crate

This commit is contained in:
Guillaume Gomez 2025-08-13 14:44:26 +02:00
parent a6620a45bd
commit cd79c7189d

View file

@ -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;
/**