1
0
mirror of https://github.com/flarum/core.git synced 2025-10-15 17:04:26 +02:00

Gracefully handle non-existent/deleted users during rendering

This commit is contained in:
Toby Zerner
2015-05-03 12:08:41 +09:30
parent f2e2d59e6f
commit d9d190b772
4 changed files with 13 additions and 10 deletions

View File

@@ -24,7 +24,7 @@ export default class PostComment extends Component {
this.subtree = new SubtreeRetainer(
() => this.props.post.freshness,
() => this.props.post.user().freshness,
() => this.props.post.user() && this.props.post.user().freshness,
this.postHeaderUser.showCard
);
}