Skip to content

Commit

Permalink
Fix passing initial query into RecentView (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
postrowinski committed Jul 31, 2023
1 parent 2f973a5 commit a7dc1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mwdb/web/src/components/RecentView/Views/RecentView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function RecentView(props: Props) {
const currentQuery = searchParams.get("q") || "";
// Submitted query for which we know it's valid and
// we can load next parts of results into UI
const [submittedQuery, setSubmittedQuery] = useState("");
const [submittedQuery, setSubmittedQuery] = useState(currentQuery);

// Query input state
const [queryInput, setQueryInput] = useState(currentQuery);
Expand Down

0 comments on commit a7dc1f4

Please sign in to comment.