Skip to content

Commit

Permalink
Update filter variable if no filter provided
Browse files Browse the repository at this point in the history
  • Loading branch information
MReyna12 committed Apr 18, 2024
1 parent 3317671 commit a7c7605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/blocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export const parseSearchBlock = (element: HTMLElement): JSX.Element | null => {
if (!element.classList.contains(OS_RAISE_SEARCH_CLASS)) {
return null
}
const maybeFilter = element.dataset.filter ?? ''
const maybeFilter = element.dataset.filter ?? undefined

return <SearchBlock
versionId={getVersionId()}
Expand Down

0 comments on commit a7c7605

Please sign in to comment.