Skip to content

Commit 0d695ff

Browse files
Fix crates filtering box not being filled
1 parent e628196 commit 0d695ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2422,7 +2422,7 @@ if (!DOMTokenList.prototype.remove) {
24222422
return;
24232423
}
24242424
var crates_text = [];
2425-
if (crates.length > 1) {
2425+
if (Object.keys(crates).length > 1) {
24262426
for (var crate in crates) {
24272427
if (crates.hasOwnProperty(crate)) {
24282428
crates_text.push(crate);

0 commit comments

Comments
 (0)