Skip to content

Commit

Permalink
[frontend] Fix DeepScan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Hassine committed Feb 25, 2021
1 parent c707753 commit 69fbd59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions opencti-platform/opencti-front/src/components/ItemMarkings.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class ItemMarkings extends Component {
case 'TLP:RED':
return (
<Chip
key={markingDefinition.definition}
className={className}
style={inlineStyles.red}
label={label}
Expand All @@ -92,6 +93,7 @@ class ItemMarkings extends Component {
case 'TLP:AMBER':
return (
<Chip
key={markingDefinition.definition}
className={className}
style={inlineStyles.orange}
label={label}
Expand All @@ -101,6 +103,7 @@ class ItemMarkings extends Component {
case 'TLP:GREEN':
return (
<Chip
key={markingDefinition.definition}
className={className}
style={inlineStyles.green}
label={label}
Expand All @@ -109,6 +112,7 @@ class ItemMarkings extends Component {
case 'TLP:WHITE':
return (
<Chip
key={markingDefinition.definition}
className={className}
style={inlineStyles.white}
label={label}
Expand All @@ -117,6 +121,7 @@ class ItemMarkings extends Component {
case 'SF':
return (
<Chip
key={markingDefinition.definition}
className={className}
style={inlineStyles.blue}
label={label}
Expand All @@ -125,6 +130,7 @@ class ItemMarkings extends Component {
default:
return (
<Chip
key={markingDefinition.definition}
className={className}
style={inlineStyles.white}
label={label}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ class Filters extends Component {

searchEntities(filterKey, event) {
const { t } = this.props;
this.setState({ value: event.target.value });
if (event && event.target.value !== 0) {
this.setState({ value: event.target.value });
}
switch (filterKey) {
case 'createdBy':
fetchQuery(identityCreationIdentitiesSearchQuery, {
Expand Down

0 comments on commit 69fbd59

Please sign in to comment.