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