1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-13 22:12:50 +02:00

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

This commit is contained in:
Roman Musin
2020-06-08 08:40:52 +01:00
committed by GitHub
parent 618d8723d1
commit d2b81d221b

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