(state, ownProps)
| 394 | } |
| 395 | |
| 396 | const mapStateToProps = (state, ownProps) => { |
| 397 | const { entity, location, activeMode } = ownProps; |
| 398 | const childrenQuery = folderDocumentsQuery(location, entity.id, undefined); |
| 399 | const reference = selectEntityReference(state, entity.id, activeMode); |
| 400 | return { |
| 401 | reference, |
| 402 | references: selectEntityReferences(state, entity.id), |
| 403 | referenceQuery: entityReferenceQuery(location, entity, reference), |
| 404 | tags: selectEntityTags(state, entity.id), |
| 405 | similar: selectSimilarResult( |
| 406 | state, |
| 407 | entitySimilarQuery(location, entity.id) |
| 408 | ), |
| 409 | children: selectEntitiesResult(state, childrenQuery), |
| 410 | }; |
| 411 | }; |
| 412 | |
| 413 | export default compose(withRouter, connect(mapStateToProps))(EntityViews); |
nothing calls this directly
no test coverage detected