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

fix "Invalid array length" #70

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

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!

@@ -623,7 +623,7 @@ export class AuthorizationService {

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