Skip to content

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

Clear directory tree on location close

Stanimir6ee6ee54f4fb
diff --git a/app/components/LocationManager.js b/app/components/LocationManager.js
index 6863e1282..b82827055 100644
--- a/app/components/LocationManager.js
+++ b/app/components/LocationManager.js
@@ -338,6 +338,9 @@ class LocationManager extends React.Component<Props, State> {
this.handleRequestCloseContextMenus();
if (this.state.selectedLocation && this.state.selectedLocation.uuid) {
this.props.closeLocation(this.state.selectedLocation.uuid);
+ this.setState({
+ dirs: {}
+ });
}
};