jam411 3 лет назад
Родитель
Сommit
48402008ca
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      packages/app/src/components/PageComment/Comment.jsx

+ 7 - 0
packages/app/src/components/PageComment/Comment.jsx

@@ -255,6 +255,13 @@ const CommentWrapperFC = (props) => {
   const { data: config } = useRendererConfig();
   const { data: interceptorManager } = useInterceptorManager();
 
+  if (currentUser == null || revisionId == null || revisionCreatedAt == null || config == null || interceptorManager == null) {
+    logger.warn('Some of materials are missing.', {
+      currentUser, revisionId, revisionCreatedAt, config, interceptorManager,
+    });
+    return null;
+  }
+
   return (
     <Comment
       t={t}