From d2b81d221b888e91c142bb197a2518fa9938dc81 Mon Sep 17 00:00:00 2001 From: Roman Musin Date: Mon, 8 Jun 2020 08:40:52 +0100 Subject: [PATCH] Mobile: Fixes #3343: Fixed issue when creating note then switching notebook (#3347) --- ReactNativeClient/lib/components/screens/note.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ReactNativeClient/lib/components/screens/note.js b/ReactNativeClient/lib/components/screens/note.js index a7f7ca9b45..b2aefa0c2b 100644 --- a/ReactNativeClient/lib/components/screens/note.js +++ b/ReactNativeClient/lib/components/screens/note.js @@ -846,8 +846,9 @@ class NoteScreenComponent extends BaseScreenComponent { async folderPickerOptions_valueChanged(itemValue) { const note = this.state.note; + const isProvisionalNote = this.props.provisionalNoteIds.includes(note.id); - if (!note.id) { + if (isProvisionalNote) { await this.saveNoteButton_press(itemValue); } else { await Note.moveToFolder(note.id, itemValue);