Commit 0e34ece6 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Don't hide empty annotation message when thread is collapsed

parent 1720fab6
......@@ -18,7 +18,6 @@ export default function EmptyAnnotation({
threadIsCollapsed,
onToggleReplies,
}) {
const isCollapsedReply = isReply && threadIsCollapsed;
return (
<article
className="space-y-4"
......@@ -26,11 +25,9 @@ export default function EmptyAnnotation({
isReply ? 'Reply' : 'Annotation'
} with unavailable content`}
>
{!isCollapsedReply && (
<div>
<em>Message not available.</em>
</div>
)}
<div>
<em>Message not available.</em>
</div>
{onToggleReplies && (
<footer className="flex items-center">
<AnnotationReplyToggle
......
......@@ -74,15 +74,6 @@ describe('EmptyAnnotation', () => {
'Reply with unavailable content'
);
});
it('should not render a message if collapsed reply', () => {
const wrapper = createComponent({
isReply: true,
threadIsCollapsed: true,
});
assert.equal(wrapper.text(), '');
});
});
it(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment