mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix: derive consistent md5 ids from tag title
This commit is contained in:
@@ -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;
|
||||
}, []);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user