Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: do not sanitize id before comparison

thecodrr86268fba8fb6
diff --git a/packages/core/collections/tags.js b/packages/core/collections/tags.js
index 4c2a72dae..3469543f2 100644
--- a/packages/core/collections/tags.js
+++ b/packages/core/collections/tags.js
@@ -6,9 +6,7 @@ import setManipulator from "../utils/set";
export default class Tags extends Collection {
tag(id) {
- const tagItem = this.all.find(
- (t) => t.id === id || t.title === this.sanitize(id)
- );
+ const tagItem = this.all.find((t) => t.id === id || t.title === id);
return tagItem;
}