fixed description exception (#172)

This commit is contained in:
Sachin Chaurasiya 2021-08-15 10:29:46 +05:30 committed by GitHub
parent 45a9fe5ce7
commit 7afedabd14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -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">

View File

@ -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">

View File

@ -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}
/> />

View File

@ -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}
/> />

View File

@ -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}
/> />