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 13, 2024
1 parent 1a0ae19 commit 5268684
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 5268684

Please sign in to comment.