You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-12 22:57:38 +02:00
Mobile: Fixed handling of provisional notes
This commit is contained in:
@ -29,10 +29,11 @@ const reduxSharedMiddleware = async function(store, next, action) {
|
||||
refreshTags = true;
|
||||
}
|
||||
|
||||
if (action.type === 'NOTE_SELECT') {
|
||||
if (action.type === 'NOTE_SELECT' || action.type === 'NAV_BACK') {
|
||||
const noteIds = newState.provisionalNoteIds.slice();
|
||||
for (const noteId of noteIds) {
|
||||
if (action.id === noteId) continue;
|
||||
reg.logger().info('Provisional was not modified - deleting it');
|
||||
await Note.delete(noteId);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user