(state, ownProps)
| 181 | } |
| 182 | |
| 183 | const mapStateToProps = (state, ownProps) => { |
| 184 | const { entity, location } = ownProps; |
| 185 | const query = entitySimilarQuery(location, entity.id); |
| 186 | const result = selectSimilarResult(state, query); |
| 187 | |
| 188 | const parsedHash = queryString.parse(location.hash); |
| 189 | |
| 190 | return { query, result, selectedIndex: +parsedHash.selectedIndex }; |
| 191 | }; |
| 192 | |
| 193 | EntitySimilarMode = connect(mapStateToProps, { |
| 194 | querySimilar, |
nothing calls this directly
no test coverage detected