소스 검색

do not allow empty strings

Shun Miyazawa 2 년 전
부모
커밋
4f38378987
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apps/app/src/features/search/client/components/SearchMethodMenuItem.tsx

+ 1 - 1
apps/app/src/features/search/client/components/SearchMethodMenuItem.tsx

@@ -23,7 +23,7 @@ export const SearchMethodMenuItem = (props: Props): JSX.Element => {
 
   const { data: currentPagePath } = useCurrentPagePath();
 
-  const shouldShowMenuItem = searchKeyword.length > 0;
+  const shouldShowMenuItem = searchKeyword.trim().length > 0;
 
   return (
     <>