mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
Fix functionality of ProfileTextView
This commit is contained in:
parent
4316387ecb
commit
7f4594ad53
@ -15,11 +15,13 @@ export const ProfileTextView = ({
|
||||
}) => {
|
||||
return (
|
||||
<div className='tw-my-10 tw-mt-2 tw-px-6'>
|
||||
{!(item.data === '' && hideWhenEmpty) && (
|
||||
{/* eslint-disable-next-line security/detect-object-injection */}
|
||||
{!(item[dataField] === '' && hideWhenEmpty) && (
|
||||
<h2 className='tw-text-lg tw-font-semibold'>{heading}</h2>
|
||||
)}
|
||||
<div className='tw-mt-2 tw-text-sm'>
|
||||
<TextView itemId={item.id} rawText={dataField ? item.data : item.text} />
|
||||
{/* eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, security/detect-object-injection */}
|
||||
<TextView itemId={item.id} rawText={dataField ? item[dataField] : item.text} />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user