diff --git a/src/components/Dashboard.jsx b/src/components/Dashboard.jsx index c812d65..3f3c3cb 100644 --- a/src/components/Dashboard.jsx +++ b/src/components/Dashboard.jsx @@ -159,7 +159,7 @@ export default connect( // ...state, // app: { // ...state.app, - // source: state.domain.sources["Anna News - Horbatenko Tanks Video"] + // source: state.domain.sources["Ilovaisk The Terrible Truth - 1551603_1553607 Chumaky Approach 29 Aug Video"] // } // }), state => state, diff --git a/src/components/SourceOverlay.jsx b/src/components/SourceOverlay.jsx index 3a2c3aa..70713c3 100644 --- a/src/components/SourceOverlay.jsx +++ b/src/components/SourceOverlay.jsx @@ -73,7 +73,7 @@ class SourceOverlay extends React.Component { const {id, url, title, date, type, affil_1, affil_2} = this.props.source return (
-
+
diff --git a/src/components/presentational/CardSource.js b/src/components/presentational/CardSource.js index cde4ca9..8570612 100644 --- a/src/components/presentational/CardSource.js +++ b/src/components/presentational/CardSource.js @@ -25,6 +25,13 @@ const CardSource = ({ source, isLoading, onClickHandler }) => { } } + if (typeof source !== 'object') { + return ( +
+
Error: this source was not found
+
+ ) + } return (
{isLoading