Skip to content

Commit e25d983

Browse files
authored
[frontend] Fix bulk search (#8624)
1 parent 9d26442 commit e25d983

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

opencti-platform/opencti-front/src/private/components/SearchBulk.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,7 @@ const SearchBulk = () => {
308308
(o) => o.node,
309309
);
310310
return values.map((value) => {
311-
const resolvedStixCoreObjects = stixCoreObjects.filter(
312-
(o) => values.includes(getMainRepresentative(o).toLowerCase()),
313-
);
311+
const resolvedStixCoreObjects = stixCoreObjects.filter((o) => value.toLowerCase() === getMainRepresentative(o).toLowerCase());
314312
if (resolvedStixCoreObjects.length > 0) {
315313
return resolvedStixCoreObjects.map(
316314
(resolvedStixCoreObject) => ({

0 commit comments

Comments
 (0)