mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-01 05:36:58 +00:00
fixed description exception (#172)
This commit is contained in:
parent
45a9fe5ce7
commit
7afedabd14
@ -244,7 +244,7 @@ const DatabaseDetails: FunctionComponent = () => {
|
||||
</div>
|
||||
<div className="tw-px-3 tw-pl-5 tw-py-2 tw-overflow-y-auto">
|
||||
<div data-testid="description" id="description" />
|
||||
{description.trim() ? (
|
||||
{description ? (
|
||||
<RichTextEditorPreviewer markdown={description} />
|
||||
) : (
|
||||
<span className="tw-no-description">
|
||||
|
@ -467,7 +467,7 @@ const MyDataDetailsPage = () => {
|
||||
className="tw-pl-3"
|
||||
data-testid="description"
|
||||
id="description">
|
||||
{description?.trim() ? (
|
||||
{description ? (
|
||||
<RichTextEditorPreviewer markdown={description} />
|
||||
) : (
|
||||
<span className="tw-no-description">
|
||||
|
@ -158,7 +158,7 @@ const ServicePage: FunctionComponent = () => {
|
||||
</div>
|
||||
<div className="tw-px-3 tw-pl-5 tw-py-2 tw-overflow-y-auto">
|
||||
<div data-testid="description" id="description" />
|
||||
{description.trim() ? (
|
||||
{description ? (
|
||||
<RichTextEditorPreviewer markdown={description} />
|
||||
) : (
|
||||
<span className="tw-no-description">
|
||||
@ -209,7 +209,7 @@ const ServicePage: FunctionComponent = () => {
|
||||
</Link>
|
||||
</td>
|
||||
<td className="tableBody-cell">
|
||||
{database.description?.trim() ? (
|
||||
{database.description ? (
|
||||
<RichTextEditorPreviewer
|
||||
markdown={database.description}
|
||||
/>
|
||||
|
@ -236,7 +236,7 @@ const TagsPage = () => {
|
||||
<div className="tw-px-3 tw-pl-5 tw-py-2 tw-overflow-y-auto">
|
||||
{currentCategory && (
|
||||
<div data-testid="description" id="description">
|
||||
{currentCategory.description.trim() ? (
|
||||
{currentCategory.description ? (
|
||||
<RichTextEditorPreviewer
|
||||
markdown={currentCategory.description}
|
||||
/>
|
||||
|
@ -363,7 +363,7 @@ const TeamsPage = () => {
|
||||
</div>
|
||||
<div className="tw-px-3 tw-pl-5 tw-py-2 tw-overflow-y-auto">
|
||||
<div data-testid="description" id="description">
|
||||
{currentTeam?.description.trim() ? (
|
||||
{currentTeam?.description ? (
|
||||
<RichTextEditorPreviewer
|
||||
markdown={currentTeam.description}
|
||||
/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user