diff --git a/components/Search.tsx b/components/Search.tsx index e264d49..da0863a 100644 --- a/components/Search.tsx +++ b/components/Search.tsx @@ -1,4 +1,4 @@ -export default function Search(props: { defaultValue: string }) { +export default function Search(props: { defaultValue: string | null }) { return (
@@ -8,7 +8,7 @@ export default function Search(props: { defaultValue: string }) { className="border-2 rounded-md px-2" name="query" id="query" - defaultValue={props.defaultValue} + defaultValue={props.defaultValue ?? ""} />