aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerIssueLocations.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/SourceViewer/SourceViewerIssueLocations.js')
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/SourceViewerIssueLocations.js16
1 files changed, 4 insertions, 12 deletions
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerIssueLocations.js b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerIssueLocations.js
index d4881347372..abe72568770 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerIssueLocations.js
+++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerIssueLocations.js
@@ -61,9 +61,6 @@ export default class SourceViewerIssueLocations extends React.Component {
}
componentWillReceiveProps (nextProps: Props) {
- /* eslint-disable no-console */
- console.log('foo');
-
if (nextProps.selectedLocation !== this.props.selectedLocation) {
this.setState({ locationBlink: false });
}
@@ -296,15 +293,10 @@ export default class SourceViewerIssueLocations extends React.Component {
{flows.map(
(flow, flowIndex) =>
flow.locations != null &&
- this
- .reverseLocations(flow.locations)
- .map((location, locationIndex) =>
- this.renderLocation(
- location,
- flowIndex,
- locationIndex,
- flow.locations || []
- ))
+ this.reverseLocations(
+ flow.locations
+ ).map((location, locationIndex) =>
+ this.renderLocation(location, flowIndex, locationIndex, flow.locations || []))
)}
</ul>
<DraggableCore axis="y" onDrag={this.handleDrag} offsetParent={document.body}>