Skip to content
Snippets Groups Projects
Commit 8d2cb1a7 authored by Bucknell, Mary S.'s avatar Bucknell, Mary S.
Browse files

Fixed initialization of time span when parameter code has no IV data.

parent 07fc02f9
No related branches found
No related tags found
1 merge request!205Fixed initialization of time span when parameter code has no IV data.
......@@ -80,7 +80,8 @@ export const attachToNode = function(store,
end: endDT
}));
} else {
store.dispatch(setSelectedTimeSpan('P7D'));
store.dispatch(setSelectedTimeSpan(config.ivPeriodOfRecord && config.ivPeriodOfRecord[parameterCode] ?
'P7D' : 'P1Y'));
}
// Fetch all data needed to render the hydrograph
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment