mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[ResponseOps][Connectors] Fix typescript errors in the hive connector (#189492)
## Summary Fix typescript errors in main.
This commit is contained in:
parent
a9ae3e53f1
commit
b34f6c8e2e
2 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
}}
|
||||
|
|
|
@ -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,
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue