diff --git a/packages/client/ui-sidebar-documentpreview/src/client/TextPreview.tsx b/packages/client/ui-sidebar-documentpreview/src/client/TextPreview.tsx index 9d726e21c7..900d891858 100644 --- a/packages/client/ui-sidebar-documentpreview/src/client/TextPreview.tsx +++ b/packages/client/ui-sidebar-documentpreview/src/client/TextPreview.tsx @@ -186,10 +186,12 @@ export function TextPreview({ } return (
- {meta.failure !== undefined + {meta.failure !== undefined && hasContent ? ( // The file's metadata failed — gone, or its workspace unknown — which // outranks a pending change; the pages already read stay under it. + // With nothing read the body's own failure already says it, so the + // bar would only repeat the same line.

{failureLine(t, meta.failure)}