Просмотр исходного кода

fix component to render on search.page.tsx

kaori 3 лет назад
Родитель
Сommit
51511b41e1
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      packages/app/src/pages/admin/search.page.tsx

+ 5 - 4
packages/app/src/pages/admin/search.page.tsx

@@ -11,8 +11,9 @@ import { useIsSearchServiceReachable } from '~/stores/context';
 import { retrieveServerSideProps } from '../../utils/admin-page-util';
 
 const AdminLayout = dynamic(() => import('~/components/Layout/AdminLayout'), { ssr: false });
-
-const ElasticsearchManagement = dynamic(() => import('~/components/Admin/ElasticsearchManagement/ElasticsearchManagement'), { ssr: false });
+const FullTextSearchManagement = dynamic(
+  () => import('~/components/Admin//FullTextSearchManagement').then(mod => mod.FullTextSearchManagement), { ssr: false },
+);
 
 
 type Props = CommonProps & {
@@ -28,7 +29,7 @@ const AdminFullTextSearchManagementPage: NextPage<Props> = (props) => {
 
   return (
     <AdminLayout title={useCustomTitle(props, title)} componentTitle={title} >
-      <ElasticsearchManagement />
+      <FullTextSearchManagement />
     </AdminLayout>
   );
 };
@@ -39,7 +40,7 @@ const injectServerConfigurations = async(context: GetServerSidePropsContext, pro
   const { searchService } = crowi;
 
   props.isSearchServiceReachable = searchService.isReachable;
-}
+};
 
 
 export const getServerSideProps: GetServerSideProps = async(context: GetServerSidePropsContext) => {