Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: collecting tags #1111

Ilian Sapundshievacfd1b30a3e6
diff --git a/app/reducers/tagging-actions.ts b/app/reducers/tagging-actions.ts
index c3315bcbc..8fb50a908 100644
--- a/app/reducers/tagging-actions.ts
+++ b/app/reducers/tagging-actions.ts
@@ -107,7 +107,8 @@ const actions = {
if (
taglibrary.findIndex(
tagGroup =>
- tagGroup.children.findIndex(obj => obj.id === tag.id) !== -1
+ tagGroup.children.findIndex(obj => obj.title === tag.title) !==
+ -1
) === -1 &&
!/^(?:\d+~\d+|\d+)$/.test(tag.title) && // skip adding of tag containing only digits
!isPlusCode(tag.title) // skip adding of tag containing geo information