Shun Miyazawa hace 4 meses
padre
commit
aeb57c30df
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      apps/app/src/pages/admin/customize.page.tsx

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

@@ -22,7 +22,7 @@ const CustomizeSettingContents = dynamic(
 
 
 type PageProps = {
 type PageProps = {
   isCustomizedLogoUploaded: boolean;
   isCustomizedLogoUploaded: boolean;
-  customTitleTemplate?: string;
+  customTitleTemplate: string;
 };
 };
 
 
 type Props = AdminCommonProps & PageProps;
 type Props = AdminCommonProps & PageProps;
@@ -66,7 +66,7 @@ export const getServerSideProps: GetServerSideProps<Props> = async (
     props: {
     props: {
       isCustomizedLogoUploaded:
       isCustomizedLogoUploaded:
         await crowi.attachmentService.isBrandLogoExist(),
         await crowi.attachmentService.isBrandLogoExist(),
-      customTitleTemplate: crowi.configManager.getConfig('customize:title'),
+      customTitleTemplate: crowi.configManager.getConfig('customize:title') ?? '',
     },
     },
   } satisfies { props: PageProps };
   } satisfies { props: PageProps };