summaryrefslogtreecommitdiff
path: root/app/client
diff options
context:
space:
mode:
Diffstat (limited to 'app/client')
-rw-r--r--app/client/dashboard/gallery.component.js2
-rw-r--r--app/client/index.jsx6
2 files changed, 4 insertions, 4 deletions
diff --git a/app/client/dashboard/gallery.component.js b/app/client/dashboard/gallery.component.js
index 0e1f44d..0b13cfe 100644
--- a/app/client/dashboard/gallery.component.js
+++ b/app/client/dashboard/gallery.component.js
@@ -8,7 +8,6 @@ class Gallery extends Component {
}
render(){
const { title, images } = this.props
- images.push(images[0])
const imageList = images.map(image => {
return (
<div>
@@ -16,6 +15,7 @@ class Gallery extends Component {
</div>
)
})
+ imageList.push(imageList[0])
return (
<div class='gallery'>
{imageList}
diff --git a/app/client/index.jsx b/app/client/index.jsx
index a084306..45a1b94 100644
--- a/app/client/index.jsx
+++ b/app/client/index.jsx
@@ -14,9 +14,9 @@ const app = (
<Provider store={store}>
<BrowserRouter>
<div>
- <Route path='/' component={Dashboard} />
- <Route path='/live/' component={LivePix2Pix} />
- <Route path='/dashboard/' component={Dashboard} />
+ <Route exact path='/' component={Dashboard} />
+ <Route exact path='/live/' component={LivePix2Pix} />
+ <Route exact path='/dashboard/' component={Dashboard} />
<Header />
</div>
</BrowserRouter>