Skip to content

Commit 66238b3

Browse files
committed
add logic to refresh list of available drives
1 parent b1c2577 commit 66238b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/contents.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import {
2020
renameObjects,
2121
copyObjects,
2222
presignedLink,
23-
createDrive
23+
createDrive,
24+
getDrivesList
2425
} from './requests';
2526

2627
let data: Contents.IModel = {
@@ -246,6 +247,8 @@ export class Drive implements Contents.IDrive {
246247
// retriving list of contents from root
247248
// in our case: list available drives
248249
const drivesList: Contents.IModel[] = [];
250+
// fetch list of available drives
251+
this._drivesList = await getDrivesList();
249252
for (const drive of this._drivesList) {
250253
drivesList.push({
251254
name: drive.name,

0 commit comments

Comments
 (0)