Skip to content

Commit

Permalink
Desktop: Fixes #1819: Note view was not reloaded after viewing revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Oct 11, 2019
1 parent 7d7975d commit 6be36ff
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ElectronClient/app/gui/NoteText.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -691,10 +691,13 @@ class NoteTextComponent extends React.Component {
}

async noteRevisionViewer_onBack() {
this.setState({ showRevisions: false });

this.lastSetHtml_ = '';
this.scheduleReloadNote(this.props);
// When coming back from the revision viewer, the webview has been
// unmounted so will need to reload. We set webviewReady to false
// to make sure everything is reloaded as expected.
this.setState({ showRevisions: false, webviewReady: false }, () => {
this.lastSetHtml_ = '';
this.scheduleReloadNote(this.props);
});
}

title_changeText(event) {
Expand Down

0 comments on commit 6be36ff

Please sign in to comment.