Update validation.
This commit is contained in:
parent
736789c536
commit
d8d0e3a5de
|
@ -278,10 +278,18 @@ export default class OneDriveFinder extends React.Component<IOneDriveFinderProps
|
||||||
*/
|
*/
|
||||||
private getDrives = async (selectedOption: IDropdownOption) => {
|
private getDrives = async (selectedOption: IDropdownOption) => {
|
||||||
let itemID: any;
|
let itemID: any;
|
||||||
|
let siteID: any;
|
||||||
|
|
||||||
if (selectedOption.data.root != undefined) {
|
if (selectedOption.data.root != undefined) {
|
||||||
itemID = await this.getOneDriveRootFolderID(selectedOption.key)
|
itemID = await this.getOneDriveRootFolderID(selectedOption.key);
|
||||||
|
this._itemID = itemID;
|
||||||
|
siteID = "";
|
||||||
|
this._siteID = "";
|
||||||
} else {
|
} 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 = [];
|
this._breadcrumbItem = [];
|
||||||
|
@ -308,6 +316,7 @@ export default class OneDriveFinder extends React.Component<IOneDriveFinderProps
|
||||||
});
|
});
|
||||||
this.setState(
|
this.setState(
|
||||||
{
|
{
|
||||||
|
siteID: siteID,
|
||||||
breadcrumbItem: this._breadcrumbItem,
|
breadcrumbItem: this._breadcrumbItem,
|
||||||
itemID: itemID
|
itemID: itemID
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue