diff --git a/src/components/CardStack.jsx b/src/components/CardStack.jsx
index bb47d71..4e7f8b0 100644
--- a/src/components/CardStack.jsx
+++ b/src/components/CardStack.jsx
@@ -36,17 +36,6 @@ class CardStack extends React.Component {
return '';
}
- renderLocation() {
- let locationName = copy[this.props.language].cardstack.unknown_location;
- if (this.props.selected.length > 0) {
- if (isNotNullNorUndefined(this.props.selected[0].location)) {
- locationName = this.props.selected[0].location;
- }
- return (
in:{` ${locationName}`}
)
- }
- return '';
- }
-
renderCardStackHeader() {
const header_lang = copy[this.props.language].cardstack.header;
diff --git a/src/components/Dashboard.jsx b/src/components/Dashboard.jsx
index c2873bd..0f400db 100644
--- a/src/components/Dashboard.jsx
+++ b/src/components/Dashboard.jsx
@@ -76,23 +76,17 @@ class Dashboard extends React.Component {
render() {
return (
+ { this.props.actions.updateNarrative(narrative); }}
+ actions={this.props.actions}
+ />
this.getCategoryColor(category)
}}
/>
-
- this.props.actions.updateSelected([])}
- getNarrativeLinks={event => this.getNarrativeLinks(event)}
- getCategoryColor={category => this.getCategoryColor(category)}
- />
this.getCategoryColor(category)
}}
/>
+ { this.props.actions.updateNarrative(narrative); }}
+ />
+ this.props.actions.updateSelected([])}
+ getNarrativeLinks={event => this.getNarrativeLinks(event)}
+ getCategoryColor={category => this.getCategoryColor(category)}
+ />
this.props.actions.toggleInfoPopup()}
/>
-
{
- this.props.actions.updateNarrative(narrative);
+ this.props.onSelectNarrative(narrative);
});
}
diff --git a/src/reducers/app.js b/src/reducers/app.js
index 7fe01be..5353466 100644
--- a/src/reducers/app.js
+++ b/src/reducers/app.js
@@ -43,7 +43,7 @@ function updateNarrative(appState, action) {
// Add some margin to the datetime extent
minDate = minDate - ((maxDate - minDate) / 20);
maxDate = maxDate + ((maxDate - minDate) / 20);
-
+ return appState;
return Object.assign({}, appState, {
narrative: action.narrative,
filters: Object.assign({}, appState.filters, {