mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-02 20:21:19 +02:00
fix attachment count not showing
This commit is contained in:
@@ -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 [];
|
||||
|
||||
Reference in New Issue
Block a user