Skip to content

Commit

Permalink
Merge pull request #151 from IDEA-Research/fix/preview_grounding
Browse files Browse the repository at this point in the history
fix(app): preview grounding annotations with filter
  • Loading branch information
cefeng06 authored Apr 10, 2024
2 parents 90a2c81 + d14391d commit 1f4c99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/Annotator/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ const Preview: React.FC<PreviewProps> = (props) => {
}

const getHighlightWords = () => {
const objects = list[current].objects;
const objects = objectsFilter ? objectsFilter(list[current]) : list[current].objects;
return categories
.filter((category) => objects.find((obj: any) => obj.categoryId === category.id))
.map((category) => {
Expand Down

0 comments on commit 1f4c99a

Please sign in to comment.