fix: derive consistent md5 ids from tag title

This commit is contained in:
thecodrr
2021-02-20 11:31:44 +05:00
parent 25ee202d64
commit e898db9562
8 changed files with 28 additions and 13 deletions

View File

@@ -75,10 +75,10 @@ class Settings {
.notebook(pin.data.notebookId)
.topics.topic(pin.data.id)._topic;
} else if (pin.type === "tag") {
item =
this._db.tags.tag(pin.data.id) || this._db.tags.tag(pin.data.title);
item = this._db.tags.tag(pin.data.id);
}
if (item) prev.push(item);
else this.unpin(pin.data.id); // TODO risky.
return prev;
}, []);
}