Update query follow documents, dont allow files with size 0.

This commit is contained in:
André Lage 2022-01-13 15:14:34 +01:00
parent 5d086e2119
commit 20c066635e
1 changed files with 1 additions and 1 deletions

View File

@ -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 => {