Skip to content

Commit

Permalink
corrected issue with integrated deforestation alert layer toggle and …
Browse files Browse the repository at this point in the history
…layer being displayed correctly on mapview
  • Loading branch information
davidlstarr committed Oct 18, 2023
1 parent 4a3a891 commit ded8f33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const SelectIntegratedAlertLayer = (): JSX.Element => {
function handleDensityButtonClick(e): void {
dispatch(setHighConfidenceConfirmed(false));
dispatch(setGeographicCoverage(false));
const integratedAlertLayers = [e.target[0].value, e.target[1].value, e.target[2].value];
const integratedAlertLayers = [e.target[0].value, e.target[1].value, e.target[2].value, e.target[3].value];
mapController.updateGFWLayer(e.target.value, integratedAlertLayers);
dispatch(setIntegratedAlertLayer(e.target.value));
dispatch(setIntegratedAlertLayerLabel(e.target.selectedOptions[0].text));
Expand Down
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={[0, 730]}
value={range}
allowCross={false}
tipFormatter={(val) => handleTipFormatter(val)}
tipProps={{
Expand Down

0 comments on commit ded8f33

Please sign in to comment.