Skip to content

Commit

Permalink
Desktop: Fixes laurent22#1819: Note view was not reloaded after viewi…
Browse files Browse the repository at this point in the history
…ng revisions
  • Loading branch information
laurent22 authored and scoroi committed Nov 10, 2019
1 parent c22b48b commit f0ddd58
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 f0ddd58

Please sign in to comment.