Skip to content

Commit

Permalink
finished last promptings of the map
Browse files Browse the repository at this point in the history
  • Loading branch information
romer8 committed Nov 11, 2024
1 parent ced03a5 commit f7d723f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 7 additions & 2 deletions reactapp/features/hydroFabric/components/nexusSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {useEffect, Fragment,lazy} from 'react';
import { useHydroFabricContext } from 'features/hydroFabric/hooks/useHydroFabricContext';
import appAPI from 'services/api/app';
import SelectComponent from './selectComponent';
// const SelectComponent = lazy(() => import('selectComponent'));

const NexusSelect = (props) => {
const {state,actions} = useHydroFabricContext();
Expand All @@ -18,7 +17,13 @@ const NexusSelect = (props) => {
appAPI.getNexusTimeSeries(params).then((response) => {
actions.set_series(response.data);
actions.set_chart_layout(response.layout);
actions.set_teehr_id(response.usgs_id);
if(response.usgs_id){
actions.set_teehr_id(response.usgs_id);
}
else{
actions.reset_teehr();
}

actions.set_nexus_list(response.nexus_ids);
actions.set_troute_id(state.nexus.id);
props.toggleSingleRow(false);
Expand Down
2 changes: 0 additions & 2 deletions reactapp/features/hydroFabric/components/teehrSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ const TeehrSelect = (props) => {
var params = {}
appAPI.getTeehrVariables(params).then((response) => {
actions.set_teehr_variable_list(response.teehr_variables);
console.log(response.teehr_variables)

props.toggleSingleRow(false);
props.setIsLoading(false);

Expand Down
2 changes: 1 addition & 1 deletion reactapp/views/ngiab/containers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const HydroFabricContainer = styled.div`
order: 2;
width: 100%;
height: ${props => props.fullScreen ? '0%' : '40%'};
padding:5px;
padding:10px;
display:flex;
flex-direction:row;
`;
Expand Down

0 comments on commit f7d723f

Please sign in to comment.