Skip to content

Failed Dirty detection on value in array changed back to previous value #542

@simonaberry

Description

@simonaberry

If you have a object with a field of type array.

  1. Perform initial save, with object.arrayField = [5,5] => ok (PUT request includes [5,5])
  2. modify array and save, i.e. object.arrayField = [5,0] => ok (PUT request includes [5,0])
  3. change array back to first value & save, i.e. object.arrayField = [5,5] => problem (PUT request does not include the arrayField ... seems like it doesn't detect the change)

however if you do a object.arrayField = object.arrayField.slice() before saving, the sdk does detect the change in step 3 and sends the correct payload

error is happening with lastest version 1.11.0

Metadata

Metadata

Assignees

Labels

type:bugImpaired feature or lacking behavior that is likely assumed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions