diff --git a/react-slideshow/src/App.js b/react-slideshow/src/App.js index 8bd28c8..c8591c8 100644 --- a/react-slideshow/src/App.js +++ b/react-slideshow/src/App.js @@ -57,6 +57,9 @@ class Album extends React.Component { }; } componentDidMount() { + this.loadAlbum() + } + loadAlbum() { let {album} = this.props; fetch(process.env.PUBLIC_URL + `/api/album/${album}`) .then(res => res.json())