Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #531 from Shopify/fix-form-state-list
Browse files Browse the repository at this point in the history
Fix react-form-state List component
  • Loading branch information
marina101 authored Feb 27, 2019
2 parents 683bade + 9534b2a commit 769b09a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-form-state/src/components/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export default class List<Fields> extends React.Component<
const innerFields: FieldDescriptors<Fields> = mapObject(
fieldValues,
(value, fieldPath) => {
const initialFieldValue = initialValue[index][fieldPath];
const initialFieldValue =
initialValue[index] && initialValue[index][fieldPath];
return {
value,
onBlur,
Expand Down

0 comments on commit 769b09a

Please sign in to comment.