mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
feat: add basic syncing (untested)
This commit is contained in:
@@ -91,8 +91,8 @@ export default class Notebooks {
|
||||
|
||||
filter(query) {
|
||||
if (!query) return [];
|
||||
return tfun.filter(v => fuzzysearch(query, v.title + " " + v.description))(
|
||||
this.all
|
||||
);
|
||||
let queryFn = v => fuzzysearch(query, v.title + " " + v.description);
|
||||
if (query instanceof Function) queryFn = query;
|
||||
return tfun.filter(queryFn)(this.all);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user