From ea8f15ab2395d06d2130ef8ebcf4041af624a13b Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Tue, 25 Feb 2020 17:39:50 -0800 Subject: [PATCH] Teeny tiny refactor. --- react-slideshow/src/App.js | 3 +++ 1 file changed, 3 insertions(+) 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())