Skip to content

Commit

Permalink
#209 fixed issue with data filter in compare
Browse files Browse the repository at this point in the history
  • Loading branch information
io53 committed Jul 24, 2024
1 parent 8fc5e98 commit ddba831
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/CompareView.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function CompareView(props) {
}
}
// filter out data that is not in the time range
allData.data.measurements = allData.data.measurements.filter(x => x.timestamp >= since && x.timestamp <= until)
allData.data.measurements = allData.data.measurements.filter(x => x.timestamp >= since)
return { sensor, data: allData };
});

Expand Down Expand Up @@ -162,6 +162,7 @@ function CompareView(props) {
const { width } = useContainerDimensions(ref)
const colorMode = useColorMode().colorMode;
if (loading) return <Box height={450}><Progress isIndeterminate /></Box>
console.log("gdata.length", gdata.length)
return (
<div ref={ref}>
{!gdata.length ?
Expand Down

0 comments on commit ddba831

Please sign in to comment.