Skip to content

Commit

Permalink
#4554 - Allow displaying comments from annotators on hover when curat…
Browse files Browse the repository at this point in the history
…ing using curation sidebar on the annotation page

- Fix lazy details for concept feature suggestions
  • Loading branch information
reckart committed Mar 9, 2024
1 parent 1a58b2c commit 26d993a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,14 @@ public List<VLazyDetailGroup> lookupLazyDetails(SourceDocument aDocument, User a
var detailGroups = new ArrayList<VLazyDetailGroup>();
for (var aFeature : annotationService.listAnnotationFeature(aLayer)) {
if (aFeature.getLinkMode() == LinkMode.WITH_ROLE) {
return emptyList();
continue;
}

var vid = VID.parse(aVid.getExtensionPayload());
var representative = predictions.getPredictionByVID(aDocument, vid);
if (representative.isEmpty()
|| !representative.get().getFeature().equals(aFeature.getName())) {
return emptyList();
continue;
}

var sao = representative.get();
Expand All @@ -340,7 +340,7 @@ public List<VLazyDetailGroup> lookupLazyDetails(SourceDocument aDocument, User a
.findFirst();

if (group.isEmpty()) {
return emptyList();
continue;
}

var pref = recommendationService.getPreferences(aUser, aDocument.getProject());
Expand Down

0 comments on commit 26d993a

Please sign in to comment.