Commit 7aa492bf authored by René Jochum's avatar René Jochum

Fix bug in counter-tree example

parent aded3802
......@@ -10,7 +10,7 @@ type OwnProps = {
}
function mapState(state: RootState, ownProps: OwnProps) {
let rNode = state.get('nodes').get(ownProps.id) as FlatTreeNode<CounterObject>
let rNode = state.get('nodes').find((x) => x.id === ownProps.id) as FlatTreeNode<CounterObject>
return {id: ownProps.id, rNode: rNode}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment