diff options
author | bobzel <zzzman@gmail.com> | 2023-12-06 22:57:16 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-12-06 22:57:16 -0500 |
commit | 6b87d29d668f290f53ca5109b9922663302e0eb2 (patch) | |
tree | c0dc5e9cf1812ddedcce3c38f61d2690a42446eb | |
parent | df4c0931b6596d7b43a091f7ab5474d47c4f4ab4 (diff) |
from last
-rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoState.tsx | 10 |
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(); |