PropertyFieldFilePicker not finding images when org.asset library is on the root site #595
Open
1 of 3 tasks
Labels
help wanted
status:working-on-it
Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail.
type:bug
Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your
needs please complete the below template to ensure we have the details to help. Thanks!
Please check out the documentation to see if your question is already addressed there. This will help us ensure our documentation is up to date.
Category
Version
Please specify what version of the library you are using: [ 3.13.0 (tested with latest too) ]
Expected / Desired Behavior / Question
There should be images to pick from if you go throught the file picker -> you organization -> library, no matter where the org.asset library is located.
Observed Behavior
Only a problem when the library is on the root site! When opening the FilePicker in sharepoint and choosing "Your organization" and then the org.asset library, this is shown empty even though there are images in the library.
Steps to Reproduce
Place an org.asset library on the root site. Create an spfx webpart that uses PropertyFieldFilePicker. Open the file picker in sharepoint and try to choose images from the org.asset library.
Think I know where this bug comes from:
in: src/services/OrgAssetsService.ts
line 21 and 22, messes it up since there is no /sites in the url when the org.asset library is on the root site:
Thanks!
The text was updated successfully, but these errors were encountered: