Skip to content

Commit

Permalink
Fix anonymous access rule not displayed due to style (#2820)
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashsvmx committed May 18, 2023
1 parent fc9319e commit 629dd66
Showing 1 changed file with 9 additions and 4 deletions.
Expand Up @@ -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";
Expand Down Expand Up @@ -219,7 +218,7 @@ const AccessRule = () => {
</TooltipWrapper>
</SecureComponent>
</Grid>
<Paper className={classes.tableBlock}>
<Grid item sx={{ border: "#EAEDEE 1px solid" }}>
<SecureComponent
scopes={[IAM_SCOPES.S3_GET_BUCKET_POLICY, IAM_SCOPES.S3_GET_ACTIONS]}
resource={bucketName}
Expand All @@ -229,7 +228,13 @@ 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}
Expand All @@ -238,7 +243,7 @@ const AccessRule = () => {
idField="prefix"
/>
</SecureComponent>
</Paper>
</Grid>
</Fragment>
);
};
Expand Down

0 comments on commit 629dd66

Please sign in to comment.