Skip to content

Commit

Permalink
corrected issue with time slider for integrated alert layers
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlstarr committed Oct 16, 2023
1 parent 9c9d920 commit f58c462
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/components/sharedComponents/TimeSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ const TimeSlider = (props: TimeSliderProps): JSX.Element => {
min={props.min}
max={props.max}
defaultValue={props.defaultValue}
value={range}
value={[0, 730]}
allowCross={false}
tipFormatter={(val) => handleTipFormatter(val)}
tipProps={{
Expand Down
4 changes: 2 additions & 2 deletions src/js/store/appState/reducers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ const initialState: AppState = {
gladConfirmed: false,
highConfidenceConfirmed: false,
geographicCoverage: false,
gladStart: format(new Date(Date.now()), 'yyyy-MM-dd'),
gladEnd: format(new Date(Date.now()), 'yyyy-MM-dd'),
gladStart: subYears(new Date(), 2).toString(),
gladEnd: new Date().toString(),
glad2Start: subYears(new Date(), 2).toString(),
glad2End: new Date().toString(),
raddAlertStart: subYears(new Date(), 2).toString(),
Expand Down

0 comments on commit f58c462

Please sign in to comment.