diff --git a/portal-ui/src/screens/Console/Buckets/BucketDetails/AccessRulePanel.tsx b/portal-ui/src/screens/Console/Buckets/BucketDetails/AccessRulePanel.tsx index ecab73865..42607c30f 100644 --- a/portal-ui/src/screens/Console/Buckets/BucketDetails/AccessRulePanel.tsx +++ b/portal-ui/src/screens/Console/Buckets/BucketDetails/AccessRulePanel.tsx @@ -19,7 +19,6 @@ import { useSelector } from "react-redux"; import { useParams } from "react-router-dom"; import { Theme } from "@mui/material/styles"; import { AddIcon, Button } from "mds"; -import { Paper } from "@mui/material"; import createStyles from "@mui/styles/createStyles"; import { ErrorResponseHandler } from "../../../../common/types"; import TableWrapper from "../../Common/TableWrapper/TableWrapper"; @@ -219,7 +218,7 @@ const AccessRule = () => { - + { noBackground={true} itemActions={AccessRuleActions} columns={[ - { label: "Prefix", elementKey: "prefix" }, + { + label: "Prefix", + elementKey: "prefix", + renderFunction: (prefix: string) => { + return prefix || "/"; + }, + }, { label: "Access", elementKey: "access" }, ]} isLoading={loadingAccessRules} @@ -238,7 +243,7 @@ const AccessRule = () => { idField="prefix" /> - + ); };