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

Don't show comment threads with zero messages

GitOrigin-RevId: e9efdf4fc1119b8fdafdd8a93c7cd9caed91a276
This commit is contained in:
David 2024-09-19 11:07:43 +01:00 committed by Copybot
parent 08a6caab80
commit 8685d87920

View file

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