From 6b87d29d668f290f53ca5109b9922663302e0eb2 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 6 Dec 2023 22:57:16 -0500 Subject: from last --- .../collectionFreeForm/CollectionFreeFormInfoState.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoState.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoState.tsx index baf91da32..55750a283 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoState.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoState.tsx @@ -25,15 +25,7 @@ export class CollectionFreeFormInfoState extends React.Component this._disposers.map(disposer => disposer()); - initState = () => { - this._disposers = this.props.state.Arcs.map(arc => - reaction( - () => arc.events(), - args => arc.actions(args), - { fireImmediately: true } - ) - ); - }; + initState = () => (this._disposers = this.props.state.Arcs.map(arc => reaction(arc.events, arc.actions, { fireImmediately: true }))); componentDidMount(): void { this.initState(); -- cgit v1.2.3-70-g09d2