Skip to content

Commit

Permalink
admin-web: fix search page bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yohamta committed Aug 26, 2022
1 parent 0652945 commit e1a2627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/src/pages/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function Search() {
const [searchVal, setSearchVal] = React.useState(searchParams.get('q') || '');

const { data, error } = useSWR<GetSearchResponse>(
`/search?q=${searchParams.get('q')}`
`/search?q=${searchParams.get('q') || ""}`
);
const ref = useRef<HTMLInputElement>(null);

Expand Down

0 comments on commit e1a2627

Please sign in to comment.