Mao 4 лет назад
Родитель
Сommit
4528b3078e
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      packages/app/src/components/SearchPage/SearchResultContent.tsx

+ 1 - 0
packages/app/src/components/SearchPage/SearchResultContent.tsx

@@ -11,6 +11,7 @@ type Props ={
 }
 const SearchResultContent: FC<Props> = (props: Props) => {
   const page = props.selectedPage;
+  if (page == null) return null;
   // Temporaly workaround for lint error
   // later needs to be fixed: RevisoinRender to typescriptcomponet
   const RevisionLoaderTypeAny: any = RevisionLoader;