@@ -30,7 +30,7 @@ class SearchPage extends React.Component {
searchedKeyword: '',
searchedPages: [],
searchResultMeta: {},
- focusedPage: {},
+ focusedPage: null,
selectedPages: new Set(),
searchResultCount: 0,
activePage: 1,
@@ -163,7 +163,7 @@ class SearchPage extends React.Component {
});
}
@@ -7,7 +7,7 @@ import SearchResultContentSubNavigation from './SearchResultContentSubNavigation
type Props ={
appContainer: AppContainer,
searchingKeyword:string,
- focusedPage : any,
+ focusedPage : null | any,
const SearchResultContent: FC<Props> = (props: Props) => {
const page = props.focusedPage;
@@ -27,7 +27,7 @@ const PageReactionButtons : React.FC<PageReactionButtonsProps> = (props: PageRea
const f = async() => {
const {
data: { likerIds, sumOfLikers, isLiked },
- } = await apiv3Get('/page/info', { _id: pageId });
+ } = await apiv3Get('/page/info', { pageId });
setSumOfLikers(sumOfLikers);
setLikers(likerIds);