From 1bdd079b64cf31af54482fb12e0a56aba4682ce8 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 1 Mar 2022 11:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/NEXT/LayoutSearch.js | 2 +- themes/NEXT/components/SearchInput.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/NEXT/LayoutSearch.js b/themes/NEXT/LayoutSearch.js index 01b13d72..34a48e47 100644 --- a/themes/NEXT/LayoutSearch.js +++ b/themes/NEXT/LayoutSearch.js @@ -12,7 +12,7 @@ export const LayoutSearch = (props) => {
{' '} - {posts.length} {locale.COMMON.RESULT_OF_SEARCH} + {posts?.length} {locale.COMMON.RESULT_OF_SEARCH}
diff --git a/themes/NEXT/components/SearchInput.js b/themes/NEXT/components/SearchInput.js index 2f6f86c4..48399f85 100644 --- a/themes/NEXT/components/SearchInput.js +++ b/themes/NEXT/components/SearchInput.js @@ -52,7 +52,7 @@ const SearchInput = ({ currentTag, currentSearch, cRef }) => { onChange={e => updateSearchKey(e.target.value)} defaultValue={searchKey} /> - {(searchKey && searchKey.length && )} + {(searchKey && searchKey.length && )}
{ handleSearch(searchKey) }}>