[ResponseOps][Connectors] Fix typescript errors in the hive connector (#189492)

## Summary

Fix typescript errors in main.
This commit is contained in:
Antonio 2024-07-30 14:49:56 +02:00 committed by GitHub
parent a9ae3e53f1
commit b34f6c8e2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -71,7 +71,7 @@ export const TheHiveParamsAlertFields: React.FC<ActionParamsProps<ExecutorParams
helpText: '',
isInvalid:
errors['createAlertParam.title'] !== undefined &&
errors['createAlertParam.title'].length > 0 &&
Number(errors['createAlertParam.title'].length) > 0 &&
alert.title !== undefined,
error: errors['createAlertParam.title'] as string,
}}
@ -102,7 +102,7 @@ export const TheHiveParamsAlertFields: React.FC<ActionParamsProps<ExecutorParams
helpText: '',
isInvalid:
errors['createAlertParam.type'] !== undefined &&
errors['createAlertParam.type'].length > 0 &&
Number(errors['createAlertParam.type'].length) > 0 &&
alert.type !== undefined,
error: errors['createAlertParam.type'] as string,
}}
@ -122,7 +122,7 @@ export const TheHiveParamsAlertFields: React.FC<ActionParamsProps<ExecutorParams
helpText: '',
isInvalid:
errors['createAlertParam.source'] !== undefined &&
errors['createAlertParam.source'].length > 0 &&
Number(errors['createAlertParam.source'].length) > 0 &&
alert.source !== undefined,
error: errors['createAlertParam.source'] as string,
}}
@ -143,7 +143,7 @@ export const TheHiveParamsAlertFields: React.FC<ActionParamsProps<ExecutorParams
helpText: '',
isInvalid:
errors['createAlertParam.sourceRef'] !== undefined &&
errors['createAlertParam.sourceRef'].length > 0 &&
Number(errors['createAlertParam.sourceRef'].length) > 0 &&
alert.sourceRef !== undefined,
error: errors['createAlertParam.sourceRef'] as string,
}}

View file

@ -92,7 +92,7 @@ export const TheHiveParamsCaseFields: React.FC<ActionParamsProps<ExecutorParams>
helpText: '',
isInvalid:
errors['pushToServiceParam.incident.title'] !== undefined &&
errors['pushToServiceParam.incident.title'].length > 0 &&
Number(errors['pushToServiceParam.incident.title'].length) > 0 &&
incident.title !== undefined,
error: errors['pushToServiceParam.incident.title'] as string,
}}