From 6a1a3eee91031b3852aeb8d77011fc1e24ca9daa Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 25 Jun 2024 22:20:33 -0400 Subject: [PATCH] fix: Crash rendering some document hover previews --- .../HoverPreview/HoverPreviewDocument.tsx | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/app/components/HoverPreview/HoverPreviewDocument.tsx b/app/components/HoverPreview/HoverPreviewDocument.tsx index c9fed507c..1688eb629 100644 --- a/app/components/HoverPreview/HoverPreviewDocument.tsx +++ b/app/components/HoverPreview/HoverPreviewDocument.tsx @@ -1,7 +1,9 @@ import * as React from "react"; +import { richExtensions } from "@shared/editor/nodes"; import { UnfurlResourceType, UnfurlResponse } from "@shared/types"; import Editor from "~/components/Editor"; import Flex from "~/components/Flex"; +import ErrorBoundary from "../ErrorBoundary"; import { Preview, Title, @@ -21,20 +23,23 @@ const HoverPreviewDocument = React.forwardRef(function _HoverPreviewDocument( - - {title} - {lastActivityByViewer} - - }> - - - - + + + {title} + {lastActivityByViewer} + + }> + + + + +