diff --git a/samples/react-onedrive-finder/src/webparts/oneDriveFinder/components/OneDriveFinder.tsx b/samples/react-onedrive-finder/src/webparts/oneDriveFinder/components/OneDriveFinder.tsx index 164616467..d2fe813bb 100644 --- a/samples/react-onedrive-finder/src/webparts/oneDriveFinder/components/OneDriveFinder.tsx +++ b/samples/react-onedrive-finder/src/webparts/oneDriveFinder/components/OneDriveFinder.tsx @@ -278,10 +278,18 @@ export default class OneDriveFinder extends React.Component { let itemID: any; + let siteID: any; + if (selectedOption.data.root != undefined) { - itemID = await this.getOneDriveRootFolderID(selectedOption.key) + itemID = await this.getOneDriveRootFolderID(selectedOption.key); + this._itemID = itemID; + siteID = ""; + this._siteID = ""; } else { - itemID = await this.getRootDriveFolderID(selectedOption.key) + itemID = await this.getRootDriveFolderID(selectedOption.key); + this._itemID = itemID; + siteID = selectedOption.key; + this._siteID = selectedOption.key.toString(); } this._breadcrumbItem = []; @@ -308,6 +316,7 @@ export default class OneDriveFinder extends React.Component