Procházet zdrojové kódy

80783 check existence before use it

Yohei-Shiina před 4 roky
rodič
revize
07b750dd19

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

@@ -29,7 +29,7 @@ const SearchResultList: FC<Props> = (props:Props) => {
   const focusedPageId = focusedPage != null && focusedPage._id != null ? focusedPage._id : '';
   return (
     <>
-      {props.pages.map((page) => {
+      {Array.isArray(props.pages) && props.pages.map((page) => {
         return (
           <SearchResultListItem
             key={page._id}