Skip to content

Conversation

@saerdnaer
Copy link

No description provided.

@adussarps
Copy link
Contributor

Hello @saerdnaer,

Thank you for your contribution!

Could you please provide more context around the changes you’ve made, particularly regarding the "Invalid array length" fix? It would be helpful to understand the specific scenarios where you encountered this issue and the cases your fix is addressing. Additionally, if possible, could you also elaborate on the other changes you’ve implemented?

This information will greatly assist in reviewing and understanding the improvements.

Thanks again!

for (let i = 0; i < originalItems.length; i++) {
const originalItem: Item = originalItems[i]!;
const emptyItemsToAdd = originalItem[fieldKey].length - field.update?.length - field.delete?.length;
const emptyItemsToAdd = field.update?.length - originalItem[fieldKey].length - field.delete?.length;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emptyItemsToAdd is counting the number of "untouched sub items" during a create / update / delete operation on a specific field here.

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

Successfully merging this pull request may close these issues.

2 participants