mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-03-02 01:39:21 +00:00
Merge pull request #2204 from aaclage/Feature/FixQueryFollowDocuments
Update query follow documents, dont allow files with size 0.
This commit is contained in:
commit
ed01e60f75
@ -77,7 +77,7 @@ Version|Date|Comments
|
||||
-------|----|--------
|
||||
1.0|June 22, 2021|Initial release
|
||||
2.0|November 25, 2021|Change to use Microsoft Graph Follow
|
||||
|
||||
3.0|January 13, 2022|Graph fixes
|
||||
|
||||
## Minimal Path to Awesome
|
||||
|
||||
@ -106,10 +106,6 @@ This extension illustrates the following concepts:
|
||||
[](https://www.youtube.com/watch?v=Wx7nqlP3WQU "Follow Documents in Modern Workspace with SPFx")
|
||||
|
||||
|
||||
## Disclaimer
|
||||
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
|
||||
|
||||
|
||||
## Help
|
||||
|
||||
We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.
|
||||
|
@ -9,7 +9,7 @@
|
||||
"identify/follow user key documents from all Tenant and easily access them in Modern Pages and Microsoft Teams"
|
||||
],
|
||||
"creationDateTime": "2021-06-21",
|
||||
"updateDateTime": "2021-11-25",
|
||||
"updateDateTime": "2022-01-13",
|
||||
"products": [
|
||||
"SharePoint"
|
||||
],
|
||||
|
@ -93,7 +93,7 @@ export default class FollowDocumentWebPart extends React.Component<IFollowDocume
|
||||
private getFollowDocuments = async (followDocuments: FollowDocument[]): Promise<any> => {
|
||||
const graphService: Graph = new Graph();
|
||||
let graphData: any = [];
|
||||
graphData = await graphService.getGraphContent(`https://graph.microsoft.com/v1.0/me/drive/following?$select=id,name,webUrl,parentReference,followed&Top=1000`, this.props.context);
|
||||
graphData = await graphService.getGraphContent(`https://graph.microsoft.com/v1.0/me/drive/following?$select=id,name,webUrl,parentReference,followed,size&Top=1000&Filter=size%20ne%200`, this.props.context);
|
||||
if (graphData.value !== undefined) {
|
||||
graphData.value.forEach(data => {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user