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

Fixed selector to be inclusive.

parent f8b0025a
No related branches found
No related tags found
1 merge request!225WDFN-701 and WDFN-702 - Ground water level visit data is now retrieved from the observations endpoint.
......@@ -57,7 +57,7 @@ describe('monitoring-location/components/hydrograph/tooltip module', () => {
expect(div.select('.compare-tooltip-text').size()).toBe(0);
value = div.select('.gw-level-point').text().split(' - ')[0];
expect(value).toBe('26.9 ft');
expect(value).toBe('27.2 ft');
});
});
describe('createTooltipFocus', () => {
......
......@@ -15,7 +15,7 @@ export const getSelectedGroundwaterLevels = createSelector(
if (parameterCodeDatastream) {
const inTimeRangeObservations =
parameterCodeDatastream.observations.filter(observation => {
return observation.epochTime > timeRange.start && observation.epochTime < timeRange.end;
return observation.epochTime >= timeRange.start && observation.epochTime <= timeRange.end;
});
return {
parameter: {
......
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