visuddhinanda před 2 roky
rodič
revize
0f2e3c738e

+ 3 - 1
dashboard/src/components/fts/FullTextSearchResult.tsx

@@ -22,7 +22,7 @@ interface IFtsData {
 }
 }
 interface IFtsResponse {
 interface IFtsResponse {
   ok: boolean;
   ok: boolean;
-  string: string;
+  message: string;
   data: {
   data: {
     rows: IFtsData[];
     rows: IFtsData[];
     count: number;
     count: number;
@@ -101,6 +101,8 @@ const FullTxtSearchResultWidget = ({
         });
         });
         setFtsData(result);
         setFtsData(result);
         setTotal(json.data.count);
         setTotal(json.data.count);
+      } else {
+        console.error(json.message);
       }
       }
     });
     });
   }, [bookId, currPage, keyWord, match, orderBy, pageType, tags, view]);
   }, [bookId, currPage, keyWord, match, orderBy, pageType, tags, view]);