: openIssue.textRange && openIssue.textRange.endLine;
const component = selectedLocation ? selectedLocation.component : openIssue.component;
-
+ const allMessagesEmpty =
+ locations !== undefined && locations.every(location => !location.msg);
const highlightedLocations = locations.filter(location => location.component === component);
// do not load issues when open another file for a location
branchLike={this.props.branchLike}
component={component}
displayAllIssues={true}
- displayLocationMarkers={false}
+ displayLocationMarkers={!allMessagesEmpty}
highlightedLocationMessage={highlightedLocationMessage}
highlightedLocations={highlightedLocations}
loadIssues={loadIssues}