From 729235bf3c0da2a332b0e543313168d841e33d7f Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 10 Jul 2017 21:48:17 +0100 Subject: [PATCH] bug fix --- .../lib/components/screens/notes-utils.js | 1 + ReactNativeClient/root.js | 15 ++++++--------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/ReactNativeClient/lib/components/screens/notes-utils.js b/ReactNativeClient/lib/components/screens/notes-utils.js index 99c7fad61..ca2b8c3a1 100644 --- a/ReactNativeClient/lib/components/screens/notes-utils.js +++ b/ReactNativeClient/lib/components/screens/notes-utils.js @@ -1,4 +1,5 @@ import { Note } from 'lib/models/note.js' +import { Log } from 'lib/log.js' class NotesScreenUtils { diff --git a/ReactNativeClient/root.js b/ReactNativeClient/root.js index 7026d6cff..0726b8793 100644 --- a/ReactNativeClient/root.js +++ b/ReactNativeClient/root.js @@ -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.');