Skip to content

Commit 4fd9c7a

Browse files
committed
Prevent issue when initial filter value is null.
1 parent 72bad93 commit 4fd9c7a

File tree

1 file changed

+1
-1
lines changed
  • packages/doxdox-renderer-bootstrap/src

1 file changed

+1
-1
lines changed

packages/doxdox-renderer-bootstrap/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export default async (doc: Doc): Promise<string> => `<!DOCTYPE html>
205205
<script>
206206
const params = new URLSearchParams(window.location.search);
207207
208-
const q = params.get('q');
208+
const q = params.get('q') || '';
209209
210210
const filterInput = document.querySelector('#filter-methods');
211211

0 commit comments

Comments
 (0)