Skip to content

Commit

Permalink
[frontend] fix history filters in activity tab(#6293)
Browse files Browse the repository at this point in the history
  • Loading branch information
marieflorescontact committed Mar 11, 2024
1 parent d793a45 commit 171fe52
Showing 1 changed file with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ class StixCoreObjectHistory extends Component {
filters: {
mode: 'and',
filters: [
{
key: 'context_data.id',
values: [stixCoreObjectId],
operator: 'wildcard',
},
{
key: 'event_type',
values: ['create', 'delete', 'mutation'], // retro-compatibility
Expand All @@ -142,6 +137,20 @@ class StixCoreObjectHistory extends Component {
},
],
filterGroups: [],
},
{
mode: 'or',
filters: [
{
key: 'context_data.from_id',
values: [stixCoreObjectId],
},
{
key: 'context_data.to_id',
values: [stixCoreObjectId],
},
],
filterGroups: [],
}],
},
first: 20,
Expand Down

0 comments on commit 171fe52

Please sign in to comment.