Fix mount dropdown

This commit is contained in:
2019-10-23 15:34:09 -05:00
parent 2bf158aaa3
commit 16622ba3e8
2 changed files with 4 additions and 7 deletions

View File

@@ -128,14 +128,10 @@ class MountItems extends IPCContainer {
}
};
handleMountLocationChanged = (provider, value) => {
const location = (this.props.Platform === 'win32') ?
this.props.MountState[provider].DriveLetters[value] :
value;
handleMountLocationChanged = (provider, mountLocation) => {
const state = {
...this.props.ProviderState[provider],
MountLocation: location,
MountLocation: mountLocation,
};
this.props.setProviderState(provider, state);
};