new entries should start with two empty "schedule" rows

Description

When creating a new fixed due date schedule, the schedules-row should be pre-populated with two empty rows as specified in UICIRC-20 Scenario 7. Implementing this in the FieldList component causes console errors:

because fields.push() is not actually a mutator; it dispatches an action and updates the Redux internal store (see https://redux-form.com/7.1.2/docs/api/fieldarray.md/).

Environment

None

Potential Workaround

None

relates to

Checklist

hide

TestRail: Results

Activity

Show:

Theodor Tolstoy (One-Group.se) January 11, 2018 at 9:47 AM

Works like expected

Zak Burke November 9, 2017 at 6:06 PM

nice; props.initialValues worked perfectly.

Michal Kuklis November 6, 2017 at 2:19 PM
Edited

I'm not sure if this makes sense in this context but could you pass the data which represents the rows initially with the initialValues prop?

Done

Details

Assignee

Reporter

Priority

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created November 3, 2017 at 8:23 PM
Updated January 11, 2018 at 7:55 PM
Resolved January 11, 2018 at 9:47 AM
TestRail: Cases
TestRail: Runs