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

Fix setting of initial method id

parent e164a8b3
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,8 @@ export const attachToNode = function(store,
showDataLoadingIndicator(false);
// selectedIVMethodID should be set regardless of whether we are showing only the graph but the preferred method ID
// can not be determined until the data is fetched so that is done here.
store.dispatch(setSelectedIVMethodID(timeSeriesId) || getPreferredIVMethodID(store.getState()));
const initialIVMethodID = timeSeriesId || getPreferredIVMethodID(store.getState());
store.dispatch(setSelectedIVMethodID(initialIVMethodID));
let graphContainer = nodeElem.select('.graph-container');
graphContainer.call(drawTimeSeriesGraph, store, siteno, agencyCode, sitename, showMLName, !showOnlyGraph);
......
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