You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your organisation tab shown to get images/files provided by your organization, where filepicker has not provided props to hide
Observed Behavior
Your organization is not displayed and when you debug there are issues in the code which makes the org tab not visible
Steps to Reproduce
Your org assets are in the root site collection
Add FilePicker controls
No Your organization
Further if this helps:
The issues are in the files
FilePicker.tsx
Line 58
The condition should be (instead of && operation || should be used and sometimes we are not passing this prop and will be undefined)
if (this.props.hideOrganisationalAssetTab != undefined || !this.props.hideOrganisationalAssetTab ) {
FileBrowserService.ts
Line 268
Function buildAbsoluteUrl , need to have "/" if Library url does not start with a "/"
OrgAssetsService.ts
Line 76
Null check for function _parseOrgAssetsLibraryItem 's
libItem.ThumbnailUrl
It will be best to do null check for any property of the object, not only the item we need.
Hope that helps.
I can also take it up, if my approach of the fix sounds reasonable.
Thanks,
Rabia
Thanks!
The text was updated successfully, but these errors were encountered:
Category
[ ] Enhancement
[x ] Bug
[ ] Question
Version
1.19.0
Expected / Desired Behavior / Question
Your organisation tab shown to get images/files provided by your organization, where filepicker has not provided props to hide
Observed Behavior
Your organization is not displayed and when you debug there are issues in the code which makes the org tab not visible
Steps to Reproduce
Further if this helps:
The issues are in the files
FilePicker.tsx
Line 58
The condition should be (instead of && operation || should be used and sometimes we are not passing this prop and will be undefined)
if (this.props.hideOrganisationalAssetTab != undefined || !this.props.hideOrganisationalAssetTab ) {
FileBrowserService.ts
Line 268
Function buildAbsoluteUrl , need to have "/" if Library url does not start with a "/"
OrgAssetsService.ts
Line 76
Null check for function _parseOrgAssetsLibraryItem 's
libItem.ThumbnailUrl
It will be best to do null check for any property of the object, not only the item we need.
Hope that helps.
I can also take it up, if my approach of the fix sounds reasonable.
Thanks,
Rabia
Thanks!
The text was updated successfully, but these errors were encountered: