visuddhinanda 2 years ago
parent
commit
0f2e3c738e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      dashboard/src/components/fts/FullTextSearchResult.tsx

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

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