Просмотр исходного кода

Merge pull request #20494 from overleaf/dp-zero-message-thread

Don't show comment threads with zero messages

GitOrigin-RevId: e9efdf4fc1119b8fdafdd8a93c7cd9caed91a276
David 2 лет назад
Родитель
Сommit
8685d87920

+ 1 - 1
services/web/frontend/js/features/review-panel-new/components/review-panel-comment.tsx

@@ -13,7 +13,7 @@ export const ReviewPanelComment = memo<{
   const threads = useThreadsContext()
 
   const thread = threads?.[comment.op.t]
-  if (!thread || thread.resolved) {
+  if (!thread || thread.resolved || thread.messages.length === 0) {
     return null
   }