Browse Source

restore null guard for rendererOptions in GrowiSlides

ryosei-f 1 week ago
parent
commit
6988253b93
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/presentation/src/client/components/GrowiSlides.tsx

+ 2 - 1
packages/presentation/src/client/components/GrowiSlides.tsx

@@ -24,10 +24,11 @@ export const GrowiSlides = (props: Props): JSX.Element => {
   const { rendererOptions, isDarkMode, disableSeparationByHeader } = options;
   const { rendererOptions, isDarkMode, disableSeparationByHeader } = options;
 
 
   if (
   if (
+    rendererOptions == null ||
     rendererOptions.remarkPlugins == null ||
     rendererOptions.remarkPlugins == null ||
     rendererOptions.components == null
     rendererOptions.components == null
   ) {
   ) {
-    // biome-ignore lint/complexity/noUselessFragments: This is for type checking only. The actual code will never reach here.
+    // biome-ignore lint/complexity/noUselessFragments: early return when rendererOptions is null
     return <></>;
     return <></>;
   }
   }