2
0
jam411 3 жил өмнө
parent
commit
48402008ca

+ 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}