mirror of
https://github.com/open-metadata/OpenMetadata
synced 2026-05-24 09:39:11 +00:00
Fix: Assets Tab empty Summary panel and text formatting Bug (#20305)
* bug fix for editor and assets tab * update markdownPatterns
This commit is contained in:
parent
09743368b0
commit
1869bcbecd
2 changed files with 15 additions and 10 deletions
|
|
@ -175,16 +175,20 @@ export const DataAssetSummaryPanel = ({
|
|||
case EntityType.TOPIC:
|
||||
return (
|
||||
<>
|
||||
<Row
|
||||
className="p-md border-radius-card summary-panel-card"
|
||||
gutter={[0, 4]}>
|
||||
<Col span={24}>
|
||||
<CommonEntitySummaryInfo
|
||||
componentType={componentType}
|
||||
entityInfo={entityInfo}
|
||||
/>
|
||||
</Col>
|
||||
</Row>
|
||||
{entityInfo.some((info) =>
|
||||
info.visible?.includes(componentType)
|
||||
) && (
|
||||
<Row
|
||||
className="p-md border-radius-card summary-panel-card"
|
||||
gutter={[0, 4]}>
|
||||
<Col span={24}>
|
||||
<CommonEntitySummaryInfo
|
||||
componentType={componentType}
|
||||
entityInfo={entityInfo}
|
||||
/>
|
||||
</Col>
|
||||
</Row>
|
||||
)}
|
||||
{entityType === EntityType.TABLE && (
|
||||
<TableSummary entityDetails={dataAsset as Table} />
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -148,6 +148,7 @@ export const isHTMLString = (content: string) => {
|
|||
/^\s*>{1,}\s/, // Blockquotes
|
||||
/^---|\*\*\*|___/, // Horizontal rules
|
||||
/`{1,3}[^`]+`{1,3}/, // Code blocks
|
||||
/(\*\*)[^*]+(\*\*)|(__)[^_]+(__)/, // Bold/Strong text
|
||||
];
|
||||
|
||||
const hasMarkdownSyntax = markdownPatterns.some((pattern) =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue