Mobile: Fixes #3343: Fixed issue when creating note then switching notebook (#3347)

pull/3358/head
Roman Musin 2020-06-08 08:40:52 +01:00 committed by GitHub
parent 618d8723d1
commit d2b81d221b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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);