Skip to content

Commit 48a4353

Browse files
committed
avoid crash when missing params
1 parent 998ff73 commit 48a4353

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎docs/_static/extensibility-directory.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,10 @@ window.onload = function () {
324324
const searchParams = new URLSearchParams(url);
325325
const filterType = searchParams.has("app") ? "app" : searchParams.has("tag") ? "tag" : "";
326326

327-
const filter = searchParams.get(filterType).split("-").join(" ");
328-
filterList(filter);
327+
if (filterType) {
328+
const filter = searchParams.get(filterType).split("-").join(" ");
329+
filterList(filter);
330+
}
329331
};
330332

331333
/**

0 commit comments

Comments
 (0)