Skip to content

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

fix: collecting tags from current location

Ilian Sapundshievf6d7a6dda443
diff --git a/app/reducers/tagging-actions.ts b/app/reducers/tagging-actions.ts
index 463450844..1155db606 100644
--- a/app/reducers/tagging-actions.ts
+++ b/app/reducers/tagging-actions.ts
@@ -678,7 +678,7 @@ const actions = {
dispatch: (actions: Object) => void,
getState: () => any
) => {
- const { locationIndex, settings } = getState();
+ const { settings } = getState();
if (!Pro || !Pro.Indexer || !Pro.Indexer.collectTagsFromIndex) {
dispatch(
@@ -703,7 +703,7 @@ const actions = {
}
const uniqueTags = Pro.Indexer.collectTagsFromIndex(
- locationIndex,
+ GlobalSearch.index,
tagGroup,
settings
);