Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating A Record Containing A Repeatable Does Not Work As Expected #28

Open
sammaniamsam opened this issue Dec 10, 2020 · 0 comments
Open

Comments

@sammaniamsam
Copy link

I went to update this record

{
  "id": "some-record-id",
  "form_values": {
    "9960": [
      {
        "form_values": {
          "1846": "Repeatable 1",
        }
      }
    ],
    "f505": "Test Record Name",
  },
}

with the following data

{
  "id": "some-record-id",
  "form_values": {
    "9960": [
      {
        "form_values": {
          "1846": "Repeatable 1",
        }
      },
      {
        "form_values": {
          "1846": "Repeatable 2",
        }
      },
      {
        "form_values": {
          "1846": "Repeatable 3",
        }
      }
    ],
    "f505": "Test Record Name",
  },
}

but the result is

{
  "id": "some-record-id",
  "form_values": {
    "9960": [
      {
        "form_values": {
          "1846": "Repeatable 1",
        }
      },
      {
        "form_values": {
          "1846": "Repeatable 2",
        }
      }
    ],
    "f505": "Test Record Name",
  },
}

I would have expected the record to have 3 repeatable instance instead of 2. Is what I'm experiencing expected behavior or is this a bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant