diff --git a/package.json b/package.json index e3db896..87b9962 100644 --- a/package.json +++ b/package.json @@ -14,14 +14,14 @@ "@material-ui/core": "^3.9.2", "@material-ui/icons": "^3.0.2", "@material-ui/lab": "^3.0.0-alpha.30", - "@openchemistry/girder-redux": "^0.0.34", - "@openchemistry/girder-client": "^0.0.25", - "@openchemistry/girder-ui": "^0.0.41", - "@openchemistry/molecule": "^0.4.32", - "@openchemistry/redux": "^0.3.30", - "@openchemistry/rest": "^0.3.32", - "@openchemistry/sagas": "^0.3.44", - "@openchemistry/utils": "^0.6.20", + "@openchemistry/girder-redux": "^0.0.36", + "@openchemistry/girder-client": "^0.0.27", + "@openchemistry/girder-ui": "^0.0.43", + "@openchemistry/molecule": "^0.4.35", + "@openchemistry/redux": "^0.3.32", + "@openchemistry/rest": "^0.3.34", + "@openchemistry/sagas": "^0.3.47", + "@openchemistry/utils": "^0.6.22", "connected-react-router": "^6.4.0", "core-js": "^2.6.5", "enumify": "^1.0.4", diff --git a/src/components/calculation/index.js b/src/components/calculation/index.js index 20c865f..bc4a975 100644 --- a/src/components/calculation/index.js +++ b/src/components/calculation/index.js @@ -37,7 +37,8 @@ const styles = theme => ({ moleculeContainer: { height: 80 * theme.spacing.unit, width: '100%', - marginBottom: 2 * theme.spacing.unit + marginBottom: 2 * theme.spacing.unit, + overflow: 'visible' } }); diff --git a/src/components/download-selector/index.js b/src/components/download-selector/index.js index 86b1dc9..a755eb1 100644 --- a/src/components/download-selector/index.js +++ b/src/components/download-selector/index.js @@ -3,6 +3,7 @@ import React, { useState } from 'react'; import { withStyles, Fab } from '@material-ui/core'; import { ToggleButtonGroup, ToggleButton } from '@material-ui/lab'; import DownloadIcon from '@material-ui/icons/CloudDownload'; +import { isNil } from 'lodash-es'; const styles = theme => ({ root: { @@ -24,7 +25,9 @@ const DownloadSelector = ({options, classes}) => { const [selectedOption, setSelectedOption] = useState(0); const handleSelect = (_event, selected) => { - setSelectedOption(selected); + if (!isNil(selected)) { + setSelectedOption(selected); + } } const { downloadUrl, fileName } = options[selectedOption]; @@ -33,7 +36,7 @@ const DownloadSelector = ({options, classes}) => {