Fix a mobx complaint about mutations (#1500)
parent
d33aaf57ad
commit
8f8bed9a1c
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue