Răsfoiți Sursa

Merge pull request #7487 from weseek/feat/ra-avoid-hydration-error

fix: Rich attachment hydration error
Ryoji Shimizu 3 ani în urmă
părinte
comite
5cd4443b3e

+ 1 - 2
packages/app/src/components/ReactMarkdownComponents/Attachment.tsx

@@ -61,10 +61,9 @@ export const Attachment: React.FC<{
     }
   }, [attachmentName, closeAttachmentDeleteModal, remove]);
 
-  // TODO: fix hydration failed error
   if (attachment == null) {
     return (
-      <div className='text-muted'>This attachment not found.</div>
+      <span className='text-muted'>This attachment not found.</span>
     );
   }