aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoState.tsx10
1 files changed, 1 insertions, 9 deletions
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<CollectionFreeF
_disposers: IReactionDisposer[] = [];
clearState = () => 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();