Skip to content

Commit

Permalink
fix(user management): remove quotes from technical user details (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-bmw authored Feb 16, 2024
1 parent 22682f1 commit 48e3c8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## unreleased 1.8.0-RC6

- User Management
- Removed quotation marks from technical user details

### Bugfix

- Idp User Invite Logic
Expand Down
6 changes: 3 additions & 3 deletions src/components/shared/basic/KeyValueView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import { Box } from '@mui/material'
import { Typography } from '@catena-x/portal-shared-components'
import { isValidElement, useState } from 'react'
import { useState } from 'react'
import ContentCopyIcon from '@mui/icons-material/ContentCopy'

type DataValue = string | number | JSX.Element
Expand All @@ -46,7 +46,7 @@ const renderValue = (value: DataValue) => (
wordBreak: 'break-all',
}}
>
{isValidElement(value) ? value : JSON.stringify(value)}
{value}
</Typography>
)

Expand All @@ -73,7 +73,7 @@ export const KeyValueView = ({ cols, title, items }: KeyValueViewProps) => {
}, 1000)
}}
>
{renderValue(JSON.stringify(item.value) ?? '')}
{renderValue(item.value ?? '')}
<ContentCopyIcon
sx={{
marginLeft: '10px',
Expand Down

0 comments on commit 48e3c8b

Please sign in to comment.