From 20c066635e7ae1ca5a0779ea9126b04a6e38ad94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lage?= Date: Thu, 13 Jan 2022 15:14:34 +0100 Subject: [PATCH] Update query follow documents, dont allow files with size 0. --- .../followDocumentWebPart/components/FollowDocumentWebPart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/react-follow-document/src/webparts/followDocumentWebPart/components/FollowDocumentWebPart.tsx b/samples/react-follow-document/src/webparts/followDocumentWebPart/components/FollowDocumentWebPart.tsx index 653bc6ad4..2f1ab9dab 100644 --- a/samples/react-follow-document/src/webparts/followDocumentWebPart/components/FollowDocumentWebPart.tsx +++ b/samples/react-follow-document/src/webparts/followDocumentWebPart/components/FollowDocumentWebPart.tsx @@ -93,7 +93,7 @@ export default class FollowDocumentWebPart extends React.Component => { 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 => {