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

Fix react-form-state List component #531

Merged
merged 1 commit into from
Feb 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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