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

@ -597,38 +597,46 @@ const EntityTable = ({
{cell.column.id === 'dataTypeDisplay' && ( {cell.column.id === 'dataTypeDisplay' && (
<> <>
{isReadOnly ? ( {cell.value ? (
<div className="tw-flex tw-flex-wrap tw-w-60 tw-overflow-x-auto">
<RichTextEditorPreviewer
markdown={cell.value.toLowerCase()}
/>
</div>
) : (
<> <>
{cell.value.length > 25 ? ( {isReadOnly ? (
<span> <div className="tw-flex tw-flex-wrap tw-w-60 tw-overflow-x-auto">
<PopOver <RichTextEditorPreviewer
html={ markdown={cell.value.toLowerCase()}
<div className="tw-break-words"> />
<span>{cell.value.toLowerCase()}</span> </div>
</div>
}
position="bottom"
theme="light"
trigger="click">
<div className="tw-cursor-pointer tw-underline tw-inline-block">
<RichTextEditorPreviewer
markdown={`${cell.value
.slice(0, 20)
.toLowerCase()}...`}
/>
</div>
</PopOver>
</span>
) : ( ) : (
cell.value.toLowerCase() <>
{cell.value.length > 25 ? (
<span>
<PopOver
html={
<div className="tw-break-words">
<span>
{cell.value.toLowerCase()}
</span>
</div>
}
position="bottom"
theme="light"
trigger="click">
<div className="tw-cursor-pointer tw-underline tw-inline-block">
<RichTextEditorPreviewer
markdown={`${cell.value
.slice(0, 20)
.toLowerCase()}...`}
/>
</div>
</PopOver>
</span>
) : (
cell.value.toLowerCase()
)}
</>
)} )}
</> </>
) : (
'--'
)} )}
</> </>
)} )}