We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 90a2c81 + d14391d commit 1f4c99aCopy full SHA for 1f4c99a
1 file changed
packages/components/src/Annotator/preview.tsx
@@ -358,7 +358,7 @@ const Preview: React.FC<PreviewProps> = (props) => {
358
}
359
360
const getHighlightWords = () => {
361
- const objects = list[current].objects;
+ const objects = objectsFilter ? objectsFilter(list[current]) : list[current].objects;
362
return categories
363
.filter((category) => objects.find((obj: any) => obj.categoryId === category.id))
364
.map((category) => {
0 commit comments