Skip to content

Commit

Permalink
Fix #4
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervriends committed Nov 17, 2020
1 parent aba29f4 commit 66dbb74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/forum/components/BlogPostController.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class BlogPostController extends Component {
buttons.push(
Button.component({
className: 'Button',
disabled: !articlePost.canEdit(),
disabled: !articlePost || !articlePost.canEdit(),
onclick: () => {
app.composer.load(new EditPostComposer({post: articlePost}));
app.composer.show();
Expand Down

0 comments on commit 66dbb74

Please sign in to comment.