From 8f8bed9a1c208543df9f1b689c1461c6473b96fe Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 20 Sep 2023 19:11:07 -0700 Subject: [PATCH] Fix a mobx complaint about mutations (#1500) --- src/view/com/lists/ListItems.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/view/com/lists/ListItems.tsx b/src/view/com/lists/ListItems.tsx index b78cf83cf3..c5ea131692 100644 --- a/src/view/com/lists/ListItems.tsx +++ b/src/view/com/lists/ListItems.tsx @@ -284,7 +284,10 @@ const ListHeader = observer(function ListHeaderImpl({ const descriptionRT = React.useMemo( () => list?.description && - new RichText({text: list.description, facets: list.descriptionFacets}), + new RichText({ + text: list.description, + facets: (list.descriptionFacets || [])?.slice(), + }), [list], ) return (