Skip to content

Commit

Permalink
[ResponseOps][Connectors] Fix typescript errors in the hive connector (
Browse files Browse the repository at this point in the history
…#189492)

## Summary

Fix typescript errors in main.
  • Loading branch information
adcoelho authored Jul 30, 2024
1 parent a9ae3e5 commit b34f6c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}}
Expand Down Expand Up @@ -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,
}}
Expand All @@ -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,
}}
Expand All @@ -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,
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}}
Expand Down

0 comments on commit b34f6c8

Please sign in to comment.