From 6226dc3e85053592f7f776186a2845c80d1f258d Mon Sep 17 00:00:00 2001 From: Lachlan Kermode Date: Thu, 17 Jan 2019 18:00:28 +0000 Subject: [PATCH] :lipstick: --- src/components/Map.jsx | 8 ++++---- src/components/SourceOverlay.jsx | 4 ++-- src/reducers/utils/validators.js | 3 --- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/components/Map.jsx b/src/components/Map.jsx index 8b0dd40..1c37b53 100644 --- a/src/components/Map.jsx +++ b/src/components/Map.jsx @@ -35,7 +35,7 @@ class Map extends React.Component { } componentWillReceiveProps(nextProps) { - // Set appropriate zoom for narrative + // Set appropriate zoom for narrative if (hash(nextProps.app.mapBounds) !== hash(this.props.app.mapBounds) && nextProps.app.mapBounds !== null) { this.map.fitBounds(nextProps.app.mapBounds); @@ -43,13 +43,13 @@ class Map extends React.Component { if (hash(nextProps.app.selected) !== hash(this.props.app.selected)) { // Fly to first of events selected const eventPoint = (nextProps.app.selected.length > 0) ? nextProps.app.selected[0] : null; - + if (eventPoint !== null && eventPoint.latitude && eventPoint.longitude) { this.map.setView([eventPoint.latitude, eventPoint.longitude]); } - } + } } - } + } initializeMap() { /** diff --git a/src/components/SourceOverlay.jsx b/src/components/SourceOverlay.jsx index 9191307..ea1f08d 100644 --- a/src/components/SourceOverlay.jsx +++ b/src/components/SourceOverlay.jsx @@ -145,7 +145,7 @@ class SourceOverlay extends React.Component {
this.onShiftGallery(-1)}>
this.onShiftGallery(1)}>
- ); + ); } return (
@@ -175,7 +175,7 @@ class SourceOverlay extends React.Component {
-

{`${this.state.idx+1} / ${paths.length}`}

+ {/*

{`${this.state.idx+1} / ${paths.length}`}

*/} {title?

{title}

: null}
{desc}
diff --git a/src/reducers/utils/validators.js b/src/reducers/utils/validators.js index f52f909..057d048 100644 --- a/src/reducers/utils/validators.js +++ b/src/reducers/utils/validators.js @@ -133,9 +133,6 @@ export function validateDomain (domain) { } }) - console.log(sanitizedDomain) - - // Message the number of failed items in domain Object.keys(discardedDomain).forEach(disc => { const len = discardedDomain[disc].length