Fix a mobx complaint about mutations (#1500)
parent
d33aaf57ad
commit
8f8bed9a1c
|
@ -284,7 +284,10 @@ const ListHeader = observer(function ListHeaderImpl({
|
||||||
const descriptionRT = React.useMemo(
|
const descriptionRT = React.useMemo(
|
||||||
() =>
|
() =>
|
||||||
list?.description &&
|
list?.description &&
|
||||||
new RichText({text: list.description, facets: list.descriptionFacets}),
|
new RichText({
|
||||||
|
text: list.description,
|
||||||
|
facets: (list.descriptionFacets || [])?.slice(),
|
||||||
|
}),
|
||||||
[list],
|
[list],
|
||||||
)
|
)
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue