mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
fix: items not deleting
This commit is contained in:
@@ -415,7 +415,7 @@ async function deleteItems(items, key) {
|
||||
if (!item) continue;
|
||||
if (this[key].hasOwnProperty(item.dateCreated)) {
|
||||
//delete note from the notebook too.
|
||||
if (item.type === "note") {
|
||||
if (item.type === "note" && item.notebook.hasOwnProperty("topic")) {
|
||||
if (
|
||||
!(await this.deleteNoteFromTopic(
|
||||
item.notebook.notebook,
|
||||
|
||||
Reference in New Issue
Block a user