Skip to content

Commit 2cf3710

Browse files
authored
Merge pull request #146 from docsbydoxdox/hotfix/keyword-value-missing
[hotfix] Prevent issue when initial filter value is null.
2 parents 72bad93 + 90dfe80 commit 2cf3710

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/doxdox-renderer-bootstrap/src/__snapshots__/index.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ exports[`bootstrap render 1`] = `
151151
<script>
152152
const params = new URLSearchParams(window.location.search);
153153
154-
const q = params.get('q');
154+
const q = params.get('q') || '';
155155
156156
const filterInput = document.querySelector('#filter-methods');
157157

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)