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 #799 React error in FileBrowser paging #871

Merged
merged 1 commit into from
Apr 11, 2021
Merged

Fix #799 React error in FileBrowser paging #871

merged 1 commit into from
Apr 11, 2021

Conversation

cwparsons
Copy link
Contributor

@cwparsons cwparsons commented Apr 8, 2021

Q A
Bug fix? [x]
New feature? [ ]
New sample? [ ]
Related issues? fixes #826

What's in this Pull Request?

In the file picker control, the site file picker tab uses a <DetailList> for file selection. If a list of files is too long and requires pagination, it calls this onRenderMissingItem callback. This function is asyncronous and returns a promise, but this causes a React render error because onRenderMissingItem is expecting to render something.

Instead, we call the asyncronous function and return null.

@AJIXuMuK AJIXuMuK merged commit be9266f into pnp:dev Apr 11, 2021
@AJIXuMuK
Copy link
Collaborator

thank you @cwparsons for the fix!
It has been merged and will be included in the next release!

@AJIXuMuK AJIXuMuK added this to the 3.1.0 milestone Apr 11, 2021
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.

None yet

2 participants