Skip to content

Commit

Permalink
[frontend] fix bulk search not returning HashedObservable (#6522)
Browse files Browse the repository at this point in the history
  • Loading branch information
marieflorescontact committed Apr 3, 2024
1 parent 679089e commit 512a674
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ const SearchBulk = () => {
|| o.observable_value?.toLowerCase()
=== value.toLowerCase()
|| o.subject?.toLowerCase() === value.toLowerCase()
|| o.abstract?.toLowerCase() === value.toLowerCase(),
|| o.abstract?.toLowerCase() === value.toLowerCase()
|| o.hashes?.map((hash) => hash.hash.toLowerCase() === value.toLowerCase()),
);
if (resolvedStixCoreObjects.length > 0) {
return resolvedStixCoreObjects.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,12 @@ export const searchStixCoreObjectsLinesSearchQuery = graphql`
... on StixFile {
x_opencti_additional_names
}
... on HashedObservable {
hashes {
algorithm
hash
}
}
... on IPv4Addr {
countries {
edges {
Expand Down

0 comments on commit 512a674

Please sign in to comment.