Fix #6780 : fixed the error occuring when dataTypeDisplay value is not present (#6840)

This commit is contained in:
Aniket Katkar 2022-08-22 16:52:46 +05:30 committed by GitHub
parent f8e8d2f7ab
commit dd85280a32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -596,6 +596,8 @@ const EntityTable = ({
)} )}
{cell.column.id === 'dataTypeDisplay' && ( {cell.column.id === 'dataTypeDisplay' && (
<>
{cell.value ? (
<> <>
{isReadOnly ? ( {isReadOnly ? (
<div className="tw-flex tw-flex-wrap tw-w-60 tw-overflow-x-auto"> <div className="tw-flex tw-flex-wrap tw-w-60 tw-overflow-x-auto">
@ -610,7 +612,9 @@ const EntityTable = ({
<PopOver <PopOver
html={ html={
<div className="tw-break-words"> <div className="tw-break-words">
<span>{cell.value.toLowerCase()}</span> <span>
{cell.value.toLowerCase()}
</span>
</div> </div>
} }
position="bottom" position="bottom"
@ -631,6 +635,10 @@ const EntityTable = ({
</> </>
)} )}
</> </>
) : (
'--'
)}
</>
)} )}
{cell.column.id === 'tags' && ( {cell.column.id === 'tags' && (