Skip to content

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

@lora-thomason-ne

Description

@lora-thomason-ne

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions