TagSpaces is an offline, open source, document manager with tagging support
fix remove tags on files with the same name
sytolk207a416e366d
diff --git a/app/reducers/tagging-actions.ts b/app/reducers/tagging-actions.tsindex 601015cb1..5178fb092 100644--- a/app/reducers/tagging-actions.ts+++ b/app/reducers/tagging-actions.ts@@ -657,12 +657,15 @@ const actions = {removeAllTags: (paths: Array<string>) => async (dispatch: (action) => Promise<boolean>): Promise<boolean> => {- const promises = [];for (const path of paths) {- promises.push(dispatch(actions.removeAllTagsFromMetaData(path)));- promises.push(dispatch(actions.removeAllTagsFromFilename(path)));+ const success = await dispatch(actions.removeAllTagsFromFilename(path));+ if (success) {+ await dispatch(actions.removeAllTagsFromMetaData(path));+ } else {+ return Promise.resolve(false);+ }}- return Promise.all(promises).then(() => true);+ return Promise.resolve(true);},removeAllTagsFromFilename: (path: string) => (dispatch: (action) => Promise<boolean>,