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