Skip to content

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

fixing menu properties

Mladen Sapundshiev1ff15ec68069
diff --git a/app/components/FolderContainer.js b/app/components/FolderContainer.js
index 4e038a2af..f2aa73da3 100644
--- a/app/components/FolderContainer.js
+++ b/app/components/FolderContainer.js
@@ -346,7 +346,6 @@ class FolderContainer extends React.Component<Props, State> {
openLocation={this.props.openLocation}
toggleLocationChooser={this.toggleLocationChooser}
menuAnchorEl={this.state.locationChooserMenuAnchorEl}
- currentLocationId={this.props.currentLocationId}
/>
<div className={classes.flexMiddle} data-tid="entriesFound">
{this.props.searchResultCount > 0 && (
diff --git a/app/components/LocationMenu.js b/app/components/LocationMenu.js
index ebc59f54e..56f47c777 100644
--- a/app/components/LocationMenu.js
+++ b/app/components/LocationMenu.js
@@ -100,9 +100,9 @@ class LocationMenu extends React.Component <Props, State> {
</Button>
<Menu
id="simple-menu"
- open={this.props.open}
- anchorEl={this.props.menuAnchorEl}
- onClose={this.props.toggleLocationChooser}
+ open={this.state.locationChooserMenuOpened}
+ anchorEl={this.state.locationChooserMenuAnchorEl}
+ onClose={this.toggleLocationChooser}
PaperProps={{
style: {
maxHeight: 48 * 6.5,