diff --git a/frontend/src/components/TopicCard/Links.js b/frontend/src/components/TopicCard/Links.js index f5f60c53..b18eb4ef 100644 --- a/frontend/src/components/TopicCard/Links.js +++ b/frontend/src/components/TopicCard/Links.js @@ -29,7 +29,9 @@ class Links extends Component { Visualize.mGraph.plot() } - toggleShowMoreMaps = () => { + toggleShowMoreMaps = e => { + e.stopPropagation() + e.preventDefault() this.setState({ showMoreMaps: !this.state.showMoreMaps }) } @@ -58,13 +60,13 @@ class Links extends Component { }) if (extraLinks.length > 0) { - const text = this.state.showMoreMaps ? 'See less...' : `See ${extraLinks.length} more...` - output.push(