From 6fe4ae41e4ac04e6dbe48c69c13e08e23d18fd60 Mon Sep 17 00:00:00 2001 From: Gidi Meir Morris Date: Fri, 6 Nov 2020 10:44:04 +0000 Subject: [PATCH] fixed react warning --- .../examples/alerting_example/public/alert_types/astros.tsx | 6 +++--- .../sections/action_connector_form/action_form.tsx | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/x-pack/examples/alerting_example/public/alert_types/astros.tsx b/x-pack/examples/alerting_example/public/alert_types/astros.tsx index 343f6b10ef85bb..e394f6aecaa01e 100644 --- a/x-pack/examples/alerting_example/public/alert_types/astros.tsx +++ b/x-pack/examples/alerting_example/public/alert_types/astros.tsx @@ -126,9 +126,9 @@ export const PeopleinSpaceExpression: React.FunctionComponent - errs.map((e) => ( -

+ Object.entries(errors).map(([field, errs]: [string, string[]], fieldIndex) => + errs.map((e, index) => ( +

{field}:`: ${errs}`

)) diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_form.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_form.tsx index 92aa59d2af2e76..3a7341afe3e079 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_form.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_form.tsx @@ -333,6 +333,7 @@ export const ActionForm = ({ actionConnector={actionConnector} actionParamsErrors={actionParamsErrors} index={index} + key={`action-form-action-at-${index}`} setActionParamsProperty={setActionParamsProperty} actionTypesIndex={actionTypesIndex} connectors={connectors}