diff --git a/src/scenes/DocumentEdit/DocumentEditState.js b/src/scenes/DocumentEdit/DocumentEditState.js index 1b3b59f7b..96f93cbae 100644 --- a/src/scenes/DocumentEdit/DocumentEditState.js +++ b/src/scenes/DocumentEdit/DocumentEditState.js @@ -28,10 +28,9 @@ const documentEditState = new class DocumentEditState { @computed get htmlPreview() { // Only compute if preview is active - // if (this.preview) { - - // } - return convertToMarkdown(this.text); + if (this.preview) { + return convertToMarkdown(this.text); + } } /* Actions */