From ee9dfe9225eb5914dd7232f683f873cda8e596a4 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Thu, 23 Dec 2021 13:37:37 +0500 Subject: [PATCH] fix attachment count not showing --- apps/mobile/src/components/NoteItem/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.js index 4c97f1c0c..fe0f7b63f 100644 --- a/apps/mobile/src/components/NoteItem/index.js +++ b/apps/mobile/src/components/NoteItem/index.js @@ -78,7 +78,7 @@ const NoteItem = ({item, isTrash, tags, dateBy = 'dateCreated'}) => { const {colors} = state; const settings = useSettingStore(state => state.settings); const compactMode = settings.notesListMode === 'compact'; - const attachmentCount = db.attachments?.ofNote(item.id)?.length || 0; + const attachmentCount = db.attachments?.ofNote(item.id,'all')?.length || 0; function getNotebook() { if (isTrash || !item.notebooks || item.notebooks.length < 1) return [];