diff --git a/ElectronClient/app/gui/NoteText.jsx b/ElectronClient/app/gui/NoteText.jsx index cfe002cc67..87c3f56f2c 100644 --- a/ElectronClient/app/gui/NoteText.jsx +++ b/ElectronClient/app/gui/NoteText.jsx @@ -1299,7 +1299,7 @@ class NoteTextComponent extends React.Component { if (!path) return; - await this.printTo_('pdf', { path: path, noteId: args.noteId }); + await this.printTo_('pdf', { path: path, noteId: note.id }); } catch (error) { bridge().showErrorMessageBox(error.message); }