Skip to content

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

dont use dateCreated to check note

ammarahm-edf4157f61ab10
diff --git a/apps/mobile/src/utils/functions.js b/apps/mobile/src/utils/functions.js
index fdf2f6417..329d14097 100644
--- a/apps/mobile/src/utils/functions.js
+++ b/apps/mobile/src/utils/functions.js
@@ -6,7 +6,7 @@ import {db} from './DB';
import {eClearEditor, eOnNewTopicAdded, refreshNotesPage} from './Events';
export const deleteItems = async (item) => {
- if (item && item.dateCreated && history.selectedItemsList.length === 0) {
+ if (item && item.id && history.selectedItemsList.length === 0) {
history.selectedItemsList = [];
history.selectedItemsList.push(item);
}