Notes layout improvements and soft delete
This commit is contained in:
@@ -14,7 +14,7 @@ export const NotesSidebar: Component<{
|
||||
const currentUserId = pb.authStore.model?.id;
|
||||
|
||||
const filteredNotes = createMemo(() => {
|
||||
let n = store.notes;
|
||||
let n = store.notes.filter(note => !note.deletedAt);
|
||||
if (searchQuery()) {
|
||||
const q = searchQuery().toLowerCase();
|
||||
n = n.filter(note => note.title.toLowerCase().includes(q) || note.tags.some(t => t.toLowerCase().includes(q)));
|
||||
|
||||
Reference in New Issue
Block a user