Przeglądaj źródła

82578 show nothing when result count is 0

Yohei-Shiina 4 lat temu
rodzic
commit
77faf8c3d7

+ 1 - 1
packages/app/src/components/SearchPage/SearchPageLayout.tsx

@@ -25,7 +25,7 @@ const SearchPageLayout: FC<Props> = (props: Props) => {
   } = props;
 
   const renderShowingPageCountInfo = () => {
-    if (searchResultMeta == null || searchResultMeta.total == null || searchResultMeta.total === 0) return (<span className="ml-3">0 / 0</span>);
+    if (searchResultMeta == null || searchResultMeta.total == null || searchResultMeta.total === 0) return;
     const leftNum = pagingLimit * (activePage - 1) + 1;
     const rightNum = (leftNum - 1) + searchResultMeta.results;
     return <span className="ml-3">{`${leftNum}-${rightNum}`} / {searchResultMeta.total || 0}</span>;