Skip to content

Commit

Permalink
fix(app): preview grounding with filter
Browse files Browse the repository at this point in the history
  • Loading branch information
cefeng06 committed Apr 10, 2024
1 parent 90a2c81 commit d14391d
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 d14391d

Please sign in to comment.