Select only updateNarrative as action to pass to Toolbar

This commit is contained in:
Franc Camps-Febrer
2018-12-13 11:37:57 +01:00
committed by Lachlan Kermode
parent 58aaadc5d4
commit 6dee9fee2f
4 changed files with 18 additions and 28 deletions

View File

@@ -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, {