From fd77671575d03d797d5fce884b50077666a305d0 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 21 May 2018 15:29:35 +0100 Subject: [PATCH] Electron: Fixes #535: Note preview was not always updated when it should --- ElectronClient/app/gui/NoteText.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ElectronClient/app/gui/NoteText.jsx b/ElectronClient/app/gui/NoteText.jsx index 7c4d5aed08..7d9a2cd239 100644 --- a/ElectronClient/app/gui/NoteText.jsx +++ b/ElectronClient/app/gui/NoteText.jsx @@ -165,6 +165,8 @@ class NoteTextComponent extends React.Component { this.lastLoadedNoteId_ = note ? note.id : null; + this.updateHtml(note && note.body ? note.body : ''); + eventManager.on('alarmChange', this.onAlarmChange_); eventManager.on('noteTypeToggle', this.onNoteTypeToggle_); eventManager.on('todoToggle', this.onTodoToggle_);