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