From 7ac040da43b7e07b98872e5b6e7eb0b7bcb34697 Mon Sep 17 00:00:00 2001 From: Cheerego7 Date: Fri, 21 Oct 2022 13:12:36 +0800 Subject: [PATCH] fix(cloud-storage): render error of the CloudStorageNavigation component (#1746) --- packages/flat-stores/src/cloud-storage-store/index.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/flat-stores/src/cloud-storage-store/index.ts b/packages/flat-stores/src/cloud-storage-store/index.ts index 589220f16c1..c4e1833b94c 100644 --- a/packages/flat-stores/src/cloud-storage-store/index.ts +++ b/packages/flat-stores/src/cloud-storage-store/index.ts @@ -156,13 +156,8 @@ export class CloudStorageStore extends CloudStorageStoreBase { menuKey: React.Key, pushHistory: (path: string) => void, ): void => { - const file = this.filesMap.get(fileUUID); switch (menuKey) { case "open": { - if (file && file.resourceType === FileResourceType.Directory) { - this.setCurrentDirectoryPath(file.fileName); - this.isOpenDirectoryFile = true; - } this.onItemTitleClick(fileUUID, pushHistory); break; }