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

dialog.selectMultipleEntries returns undefined items if greater than 100 Entries selected #1996

Open
lora-thomason-ne opened this issue Aug 4, 2024 · 0 comments

Comments

@lora-thomason-ne
Copy link

In my custom app I'm using dialog.selectMultipleEntries. I do not have a min or max set in the options. I've found that when I select more than 100 items in the dialog, I get back and array of the correct length, but every item in the array over the 100th item is undefined.

So for example, if I have this code

sdk.dialogs.selectMultipleEntries({
  locale,
  contentTypes: [linkedContentType],
})
.then((arrayOfSelectedEntries) => {
  console.log(arrayOfSelectedEntries)
});

and I select 102 items, I get this result:

[
{sys:{...sys}, fields:{...fields}}, // index 0
{sys:{...sys}, fields:{...fields}}, // index 1
// ... and so on
undefined, // index 100
undefined, // index 101
]

The dialog seems to be able to hold over 100 items in the selected entries array, I'm wondering where the limit is coming from.

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