diff --git a/public/react/src/modules/courses/Resource/Fileslistitem.js b/public/react/src/modules/courses/Resource/Fileslistitem.js index 4515884cd..2effffa78 100644 --- a/public/react/src/modules/courses/Resource/Fileslistitem.js +++ b/public/react/src/modules/courses/Resource/Fileslistitem.js @@ -427,10 +427,10 @@ class Fileslistitem extends Component { {discussMessage.publish_time === null ? "" : discussMessage.is_publish === true ? moment(discussMessage.publish_time).fromNow() : moment(discussMessage.publish_time).format('YYYY-MM-DD HH:mm')} - {discussMessage && discussMessage.category_name === null ? "" : this.props.child === false ? + {discussMessage && discussMessage.category_name === undefined||discussMessage && discussMessage.category_name === null ? "" :