Skip to content

Commit

Permalink
[backend/frontend] Fix deepscan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine authored and Archidoit committed Jun 3, 2024
1 parent 05b8fe3 commit c279eac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ const PlaybookAddComponentsContent = ({
{Array(actionsInputs.length)
.fill(0)
.map((_, i) => (
<>
<React.Fragment key={i}>
{(actionsInputs[i]?.op === 'remove' || (actionsInputs[i]?.op === 'replace' && ['objectMarking', 'objectLabel'].includes(actionsInputs[i]?.attribute))) && (
<Alert severity="warning" style={{ marginBottom: 20 }}>
{t_i18n('This operations will only apply on labels or markings added in the context of this playbook such as enrichment or other knowledge manipulations but not if the labels or markings are already written in the platform.')}
Expand Down Expand Up @@ -544,7 +544,7 @@ const PlaybookAddComponentsContent = ({
</Grid>
</Grid>
</div>
</>
</React.Fragment>
))}
<div className={classes.add}>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1030,10 +1030,6 @@ const PLAYBOOK_CREATE_OBSERVABLE_COMPONENT: PlaybookComponent<CreateObservableCo
}
}
}
if (objectsToPush.length > 0) {
bundle.objects.push(...objectsToPush);
return { output_port: 'out', bundle };
}
if (objectsToPush.length > 0) {
bundle.objects.push(...objectsToPush);
return { output_port: 'out', bundle: { ...bundle, objects: bundle.objects.map((n) => (n.id === baseData.id ? baseData : n)) } };
Expand Down

0 comments on commit c279eac

Please sign in to comment.