fix: items not deleting

This commit is contained in:
thecodrr
2020-01-06 17:46:58 +05:00
parent a5aa4e472f
commit 238d40eabf

View File

@@ -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,