Skip to content

Commit

Permalink
fix(cloud-storage): render error of the CloudStorageNavigation compon…
Browse files Browse the repository at this point in the history
…ent (#1746)
  • Loading branch information
Cheerego7 authored Oct 21, 2022
1 parent 335a26a commit 7ac040d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/flat-stores/src/cloud-storage-store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7ac040d

Please sign in to comment.