We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19b9b2f commit 05237d7Copy full SHA for 05237d7
openbas-front/src/admin/components/atomic_testings/atomic_testing/TargetResultsDetail.tsx
@@ -763,7 +763,7 @@ const TargetResultsDetailFlow: FunctionComponent<Props> = ({
763
key={index}
764
hover={true}
765
onClick={() => {
766
- if (injectExpectation.inject_expectation_agent && expectationResult.sourceType === 'collector') {
+ if (injectExpectation.inject_expectation_agent && injectExpectation.inject_expectation_status === 'SUCCESS' && (expectationResult.result === 'Prevented' || expectationResult.result === 'Detected') && expectationResult.sourceType === 'collector') {
767
handleClickSecurityPlatformResult(injectExpectation, expectationResult);
768
}
769
}}
0 commit comments