From ffd85c5623b7f71a6e67e5b64a5dae286cb49ecf Mon Sep 17 00:00:00 2001 From: Ethan Bickel Date: Tue, 5 Nov 2024 15:29:51 -0600 Subject: [PATCH] fix searchBar props error --- src/components/searchBar/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/searchBar/index.tsx b/src/components/searchBar/index.tsx index 228aeb96..531df19a 100644 --- a/src/components/searchBar/index.tsx +++ b/src/components/searchBar/index.tsx @@ -9,13 +9,18 @@ type SearchBarProps = Omit, 'type'> & { export const SearchBar = (props: SearchBarProps) => { const submitButton = props.submitButton; const submitLogic = props.submitLogic; + const goodProps = { + ...props, + submitButton: undefined, + submitLogic: undefined, + }; return (
{