Teeny tiny refactor.

This commit is contained in:
Bill Thiede 2020-02-25 17:39:50 -08:00
parent 407358bc43
commit ea8f15ab23

View File

@ -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())