Yuki Takei 2 дней назад
Родитель
Сommit
688c260d91
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/presentation/src/client/components/GrowiSlides.tsx

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

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