Skip to content

Commit

Permalink
fixed react warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Nov 6, 2020
1 parent 38fb659 commit 6fe4ae4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ export const PeopleinSpaceExpression: React.FunctionComponent<PeopleinSpaceParam
});

const errorsCallout = flatten(
Object.entries(errors).map(([field, errs]: [string, string[]]) =>
errs.map((e) => (
<p>
Object.entries(errors).map(([field, errs]: [string, string[]], fieldIndex) =>
errs.map((e, index) => (
<p key={`astros-error-${fieldIndex}-${index}`}>
<EuiTextColor color="accent">{field}:</EuiTextColor>`: ${errs}`
</p>
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 6fe4ae4

Please sign in to comment.