Skip to content

Commit

Permalink
Merge pull request intermine#14 from akshatbhargava123/master
Browse files Browse the repository at this point in the history
fixed wrong viewer mode being shown and updated bundle
  • Loading branch information
heralden committed Oct 14, 2019
2 parents d7f8456 + 843fcfc commit 60d2493
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/RootContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ class RootContainer extends React.Component {
pv.io.fetchPdb(
`https://files.rcsb.org/download/${ids[selectedId]}.pdb`,
structure => {
if (!structure)
return this.setState({
error: 'No results found in RCSB Protein Data Bank'
});
this.setState({ structureReady: true }, () => {
// remove all current HTML from main element
// initialise protein visualizer with default init options
Expand Down Expand Up @@ -226,6 +230,7 @@ class RootContainer extends React.Component {
<select
placeholder="Select viewer mode"
className="viewer-select"
value={this.state.viewerMode}
onChange={this.changeMode.bind(this)}
>
{ViewerModes}
Expand Down

0 comments on commit 60d2493

Please sign in to comment.