From e16dc59955288fd57a67e850497c1bb134f6bf09 Mon Sep 17 00:00:00 2001 From: "Adolfo R. Brandes" Date: Fri, 25 Nov 2022 20:53:53 -0300 Subject: [PATCH] fix: Work around `Truncate` infinite loop This works around [a known issue](https://github.com/openedx/paragon/issues/1797) with `Truncate` that in some situations can lead to an infinite loop and subsequent page hang. --- src/discussions/posts/post/PostLink.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/discussions/posts/post/PostLink.jsx b/src/discussions/posts/post/PostLink.jsx index 4872f786..9aedd4e6 100644 --- a/src/discussions/posts/post/PostLink.jsx +++ b/src/discussions/posts/post/PostLink.jsx @@ -78,15 +78,15 @@ function PostLink({ {post.title} - + {isPostPreviewAvailable(post.previewBody) ? post.previewBody