Fix crash
This commit is contained in:
@@ -45,8 +45,8 @@
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject",
|
||||
"electron-dev": "cross-env ELECTRON_START_URL=http://localhost:4866 electron .",
|
||||
"electron-dev-unix": "cross-env ELECTRON_START_URL=http://localhost:4866 electron .",
|
||||
"electron-dev": "cross-env ELECTRON_START_URL=http://localhost:3000 electron .",
|
||||
"electron-dev-unix": "cross-env ELECTRON_START_URL=http://localhost:3000 electron .",
|
||||
"pack": "npm run build && electron-builder --dir --x64",
|
||||
"dist": "npm run build && electron-builder --x64",
|
||||
"dist-all": "npm run build && electron-builder --x64 --win --linux --mac",
|
||||
|
||||
@@ -187,7 +187,7 @@ class App extends IPCContainer {
|
||||
<MountItems remoteSupported={remoteSupported}/>
|
||||
</Box>
|
||||
));
|
||||
} else if(selectedVersion !== 'unavailable') {
|
||||
} else if (selectedVersion !== 'unavailable') {
|
||||
mainContent.push((
|
||||
<Box dxStyle={{padding: 'var(--default_spacing)', height: '173px'}}
|
||||
key={'md_' + key++}>
|
||||
|
||||
@@ -31,15 +31,13 @@ export default connect(mapStateToProps, mapDispatchToProps)(props => {
|
||||
);
|
||||
});
|
||||
|
||||
let dismissDisplay;
|
||||
if (props.AllowDismissDependencies) {
|
||||
dismissDisplay = (
|
||||
<div style={{float: 'right', margin: 0, paddingRight: '4px', boxSizing: 'border-box', display: 'block'}}>
|
||||
<b style={{cursor: 'pointer'}}
|
||||
onClick={()=>props.setDismissDependencies(true)}>X
|
||||
</b>
|
||||
</div>);
|
||||
}
|
||||
const dismissDisplay = (
|
||||
<div style={{float: 'right', margin: 0, paddingRight: '4px', boxSizing: 'border-box', display: 'block'}}>
|
||||
<a href={'#'}
|
||||
onClick={props.AllowDismissDependencies ? () => props.setDismissDependencies(true) : e => e.preventDefault()}
|
||||
style={{cursor: props.AllowDismissDependencies ? 'pointer' : 'no-drop'}}>X</a>
|
||||
</div>
|
||||
);
|
||||
|
||||
return (
|
||||
<Box dxStyle={{width: '300px', height: 'auto', padding: '5px'}}>
|
||||
@@ -50,4 +48,4 @@ export default connect(mapStateToProps, mapDispatchToProps)(props => {
|
||||
{items}
|
||||
</Box>
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user