Skip to content

Commit d14391d

Browse files
committed
fix(app): preview grounding with filter
1 parent 90a2c81 commit d14391d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/components/src/Annotator/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ const Preview: React.FC<PreviewProps> = (props) => {
358358
}
359359

360360
const getHighlightWords = () => {
361-
const objects = list[current].objects;
361+
const objects = objectsFilter ? objectsFilter(list[current]) : list[current].objects;
362362
return categories
363363
.filter((category) => objects.find((obj: any) => obj.categoryId === category.id))
364364
.map((category) => {

0 commit comments

Comments
 (0)