Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
isabellachen committed Feb 13, 2019
1 parent 0037abb commit 2f53b21
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions website/deep-art/src/MapPage/MapPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ class MapPage extends Component {
//Decode the url data
let url = this.props.match.params.id.toString();
url = decodeURIComponent(url);
let selectedArt = url.split("&")[0].slice(4);
let selectedArt = url.split("&")[0].slice(4); //gives id of artwork
let artArr = url.split("&")[1].slice(4);
artArr = JSON.parse(artArr);
// const id = selectedArt;
//Setup the Plotly graph
setupPlotly(this, artArr, selectedArt);
this.setState({url})
Expand Down

0 comments on commit 2f53b21

Please sign in to comment.