Skip to content

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

Clearing search removes the tags and description of the current folders (#1749)

Stanimird9e5414b8487
diff --git a/app/components/FolderContainer.tsx b/app/components/FolderContainer.tsx
index 9f111f5fb..b5b95ef79 100644
--- a/app/components/FolderContainer.tsx
+++ b/app/components/FolderContainer.tsx
@@ -237,7 +237,7 @@ interface Props {
progress?: Array<any>;
searchQuery: TS.SearchQuery;
setSearchQuery: (searchQuery: TS.SearchQuery) => void;
- openCurrentDirectory: () => void;
+ // openCurrentDirectory: () => void;
openURLExternally?: (url: string, skipConfirmation: boolean) => void;
language: string;
// keyBindings: Array<any>;
@@ -722,7 +722,7 @@ function mapActionCreatorsToProps(dispatch) {
updateCurrentDirEntry: AppActions.updateCurrentDirEntry,
setCurrentDirectoryColor: AppActions.setCurrentDirectoryColor,
setSearchQuery: LocationIndexActions.setSearchQuery,
- openCurrentDirectory: AppActions.openCurrentDirectory,
+ // openCurrentDirectory: AppActions.openCurrentDirectory,
openURLExternally: AppActions.openURLExternally
},
dispatch
diff --git a/app/reducers/app.ts b/app/reducers/app.ts
index 5b32b146e..be5a6a592 100644
--- a/app/reducers/app.ts
+++ b/app/reducers/app.ts
@@ -2360,7 +2360,7 @@ export const actions = {
) => {
const { currentDirectoryPath } = getState().app;
if (currentDirectoryPath) {
- dispatch(actions.loadDirectoryContent(currentDirectoryPath, false));
+ dispatch(actions.loadDirectoryContent(currentDirectoryPath, false, true));
} else {
dispatch(actions.setSearchResults([]));
}