(state, ownProps)
| 65 | } |
| 66 | |
| 67 | const mapStateToProps = (state, ownProps) => { |
| 68 | const { entityId, location } = ownProps; |
| 69 | const similarQuery = entitySimilarQuery(location, entityId); |
| 70 | const childrenQuery = folderDocumentsQuery(location, entityId, undefined); |
| 71 | const expandQuery = entityReferencesQuery(entityId); |
| 72 | return { |
| 73 | entity: selectEntity(state, entityId), |
| 74 | tagsResult: selectEntityTags(state, entityId), |
| 75 | similarQuery, |
| 76 | similarResult: selectSimilarResult(state, similarQuery), |
| 77 | expandQuery, |
| 78 | expandResult: selectEntityExpandResult(state, expandQuery), |
| 79 | childrenQuery, |
| 80 | childrenResult: selectEntitiesResult(state, childrenQuery), |
| 81 | }; |
| 82 | }; |
| 83 | |
| 84 | const mapDispatchToProps = { |
| 85 | queryEntities, |
nothing calls this directly
no test coverage detected