Skip to content

Commit

Permalink
fix: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sherry committed Sep 21, 2023
1 parent 068af2f commit 6d95e20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Tables/S3BucketsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function S3BucketsTable({ color, bucketName, accessKeyId, secretA

} catch (e) {
console.log('error', e)
goFile();
// goFile();
}

};
Expand Down Expand Up @@ -203,7 +203,8 @@ export default function S3BucketsTable({ color, bucketName, accessKeyId, secretA
let breadName = breadcrumbName.slice(0, index);
let pathName = [...breadName];
let prefix = pathName.join("/").slice(4);
if (prefix.length > 0) {
if (prefix.length > 0 ) {
prefix = prefix.slice(1);
prefix = prefix + "/";
}
setPrefix(prefix);
Expand Down

0 comments on commit 6d95e20

Please sign in to comment.