You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
bug fix
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
import { Note } from 'lib/models/note.js'
|
import { Note } from 'lib/models/note.js'
|
||||||
|
import { Log } from 'lib/log.js'
|
||||||
|
|
||||||
class NotesScreenUtils {
|
class NotesScreenUtils {
|
||||||
|
|
||||||
|
@ -65,9 +65,6 @@ const reducer = (state = defaultState, action) => {
|
|||||||
action = navHistory.pop(); // Current page
|
action = navHistory.pop(); // Current page
|
||||||
action = navHistory.pop(); // Previous page
|
action = navHistory.pop(); // Previous page
|
||||||
|
|
||||||
// newState = Object.assign({}, state);
|
|
||||||
// newState.historyCanGoBack = false;
|
|
||||||
|
|
||||||
// Fall throught
|
// Fall throught
|
||||||
|
|
||||||
case 'Navigation/NAVIGATE':
|
case 'Navigation/NAVIGATE':
|
||||||
@ -263,12 +260,12 @@ async function initialize(dispatch) {
|
|||||||
} else {
|
} else {
|
||||||
await db.open({ name: 'joplin-53.sqlite' })
|
await db.open({ name: 'joplin-53.sqlite' })
|
||||||
|
|
||||||
await db.exec('DELETE FROM notes');
|
// await db.exec('DELETE FROM notes');
|
||||||
await db.exec('DELETE FROM folders');
|
// await db.exec('DELETE FROM folders');
|
||||||
await db.exec('DELETE FROM tags');
|
// await db.exec('DELETE FROM tags');
|
||||||
await db.exec('DELETE FROM note_tags');
|
// await db.exec('DELETE FROM note_tags');
|
||||||
await db.exec('DELETE FROM resources');
|
// await db.exec('DELETE FROM resources');
|
||||||
await db.exec('DELETE FROM deleted_items');
|
// await db.exec('DELETE FROM deleted_items');
|
||||||
}
|
}
|
||||||
|
|
||||||
reg.logger().info('Database is ready.');
|
reg.logger().info('Database is ready.');
|
||||||
|
Reference in New Issue
Block a user