Fix MFileBody fileName not considering filename (#29589)
* Fix MFileBody fileName not considering `filename` * Update MFileBody.tsx
This commit is contained in:
committed by
GitHub
parent
bbd798ef36
commit
89e22e00fb
@@ -120,7 +120,7 @@ export default class MFileBody extends React.Component<IProps, IState> {
|
||||
}
|
||||
|
||||
private get fileName(): string {
|
||||
return this.content.body && this.content.body.length > 0 ? this.content.body : _t("common|attachment");
|
||||
return this.props.mediaEventHelper?.fileName || _t("common|attachment");
|
||||
}
|
||||
|
||||
private get linkText(): string {
|
||||
|
||||
Reference in New Issue
Block a user