@@ -60,8 +60,7 @@ export class ErrorHandler extends React.Component {
}
ErrorHandler.propTypes=({
children:PropTypes.object,
message:PropTypes.string,// Fixed error message. Provide either this or errorHandler
errorHandler:PropTypes.func,// Function that is called once an error is caught. It recveives the error object as argument and should return an error message as string.
message:PropTypes.oneOfType([PropTypes.string,PropTypes.func]),// Provide either a fixed error message or a callback that will receive the error details.
message:PropTypes.oneOfType([PropTypes.string,PropTypes.func])// Provide either a fixed error message or a callback that will receive the error details.
@@ -436,15 +430,6 @@ function Overview({section, def}) {
// the first time, check the system size and for large systems ask the user
// for permission.
}else{
constsizeLimit=300
if(nAtoms>=sizeLimit&&!warningIgnored){
return<ErrorCard
message={`Visualization is by default disabled for systems with more than ${sizeLimit} atoms. Do you wish to enable visualization for this system with ${nAtoms} atoms?`}