mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
dont use dateCreated to check note
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user