Uploaded image for project: 'ui-circulation'
  1. ui-circulation
  2. UICIRC-30

new entries should start with two empty "schedule" rows

    XMLWordPrintable

    Details

    • Template:

      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:

      Warning: setState(...): Cannot update during an existing state transition (such as within `render` or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to `componentWillMount`.
      

      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/).

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                zburke Zak_Burke
                Reporter:
                zburke Zak_Burke
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases