Skip to content

Commit

Permalink
[frontend] Fix playbook content filtering (#7926)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Aug 1, 2024
1 parent 1955694 commit b6391c8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,16 +470,16 @@ const PlaybookAddComponentsContent = ({
>
<Filters
helpers={helpers}
availableFilterKeys={componentId === 'PLAYBOOK_INTERNAL_DATA_STREAM' ? stixFilters : availableQueryFilterKeys}
searchContext={{ entityTypes: componentId === 'PLAYBOOK_INTERNAL_DATA_STREAM' ? ['Stix-Core-Object', 'stix-core-relationship', 'Stix-Filtering'] : ['Stix-Core-Object', 'stix-core-relationship'] }}
availableFilterKeys={componentId === 'PLAYBOOK_INTERNAL_DATA_CRON' ? availableQueryFilterKeys : stixFilters}
searchContext={{ entityTypes: componentId === 'PLAYBOOK_INTERNAL_DATA_CRON' ? ['Stix-Core-Object', 'stix-core-relationship'] : ['Stix-Core-Object', 'stix-core-relationship', 'Stix-Filtering'] }}
/>
</Box>
<div className="clearfix" />
<FilterIconButton
filters={filters}
helpers={helpers}
entityTypes={componentId === 'PLAYBOOK_INTERNAL_DATA_STREAM' ? ['Stix-Core-Object', 'stix-core-relationship', 'Stix-Filtering'] : ['Stix-Core-Object', 'stix-core-relationship']}
searchContext={{ entityTypes: componentId === 'PLAYBOOK_INTERNAL_DATA_STREAM' ? ['Stix-Core-Object', 'stix-core-relationship', 'Stix-Filtering'] : ['Stix-Core-Object', 'stix-core-relationship'] }}
entityTypes={componentId === 'PLAYBOOK_INTERNAL_DATA_CRON' ? ['Stix-Core-Object', 'stix-core-relationship'] : ['Stix-Core-Object', 'stix-core-relationship', 'Stix-Filtering']}
searchContext={{ entityTypes: componentId === 'PLAYBOOK_INTERNAL_DATA_CRON' ? ['Stix-Core-Object', 'stix-core-relationship'] : ['Stix-Core-Object', 'stix-core-relationship', 'Stix-Filtering'] }}
styleNumber={2}
redirection
/>
Expand Down

0 comments on commit b6391c8

Please sign in to comment.