Fix a mobx complaint about mutations (#1500)

zio/stable
Paul Frazee 2023-09-20 19:11:07 -07:00 committed by GitHub
parent d33aaf57ad
commit 8f8bed9a1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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 (