mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-22 20:08:19 +00:00
optimize md render
This commit is contained in:
@@ -205,7 +205,7 @@ class IndexContentViewer extends React.Component {
|
||||
const textNode = linkNode.children[0];
|
||||
let name = textNode ? textNode.text : '';
|
||||
treeNode = new TreeNode({ name: name, href: linkNode.data.href });
|
||||
} else if (paragraphNode.children[0].object === 'text') {
|
||||
} else if (paragraphNode.children[0]) {
|
||||
// paragraph first child node is a text node, then get node name
|
||||
const textNode = paragraphNode.children[0];
|
||||
let name = textNode.text ? textNode.text : '';
|
||||
|
Reference in New Issue
Block a user