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

rm processing to customTitleTemplate

Shun Miyazawa 4 месяцев назад
Родитель
Сommit
407c1ff900
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      apps/app/src/pages/admin/customize.page.tsx

+ 0 - 4
apps/app/src/pages/admin/customize.page.tsx

@@ -3,7 +3,6 @@ import dynamic from 'next/dynamic';
 import { useHydrateAtoms } from 'jotai/utils';
 
 import type { CrowiRequest } from '~/interfaces/crowi-request';
-import { _atomsForAdminPagesHydration as atoms } from '~/states/global';
 import { isCustomizedLogoUploadedAtom } from '~/states/server-configurations';
 
 import type { NextPageWithLayout } from '../_app.page';
@@ -33,7 +32,6 @@ const AdminCustomizeSettingsPage: NextPageWithLayout<Props> = (
 ) => {
   useHydrateAtoms(
     [
-      [atoms.customTitleTemplateAtom, props.customTitleTemplate],
       [isCustomizedLogoUploadedAtom, props.isCustomizedLogoUploaded],
     ],
     { dangerouslyForceHydrate: true },
@@ -66,8 +64,6 @@ export const getServerSideProps: GetServerSideProps<Props> = async (
     props: {
       isCustomizedLogoUploaded:
         await crowi.attachmentService.isBrandLogoExist(),
-      customTitleTemplate:
-        crowi.configManager.getConfig('customize:title') ?? '',
     },
   } satisfies { props: PageProps };