Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix search on home

ammarahm-ede4e560b8ba94
diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.js
index 534c2c11e..0d4064ed6 100755
--- a/apps/mobile/src/views/Home/index.js
+++ b/apps/mobile/src/views/Home/index.js
@@ -8,6 +8,7 @@ import {eSendEvent} from '../../services/EventManager';
import Navigation from '../../services/Navigation';
import SearchService from '../../services/SearchService';
import {scrollRef} from '../../utils';
+import { db } from '../../utils/DB';
import {eOnLoadNote, eScrollEvent} from '../../utils/Events';
import {tabBarRef} from '../../utils/Refs';
@@ -72,7 +73,7 @@ export const Home = ({route, navigation}) => {
const updateSearch = () => {
SearchService.update({
placeholder: 'Search in notes',
- data: notes,
+ data: db.notes.all,
type: 'notes',
});
};