diff --git a/reactapp/features/hydroFabric/components/nexusSelect.js b/reactapp/features/hydroFabric/components/nexusSelect.js index 2ef00ab..dad5931 100644 --- a/reactapp/features/hydroFabric/components/nexusSelect.js +++ b/reactapp/features/hydroFabric/components/nexusSelect.js @@ -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(); @@ -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); diff --git a/reactapp/features/hydroFabric/components/teehrSelect.js b/reactapp/features/hydroFabric/components/teehrSelect.js index 8cea566..d7c4581 100644 --- a/reactapp/features/hydroFabric/components/teehrSelect.js +++ b/reactapp/features/hydroFabric/components/teehrSelect.js @@ -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); diff --git a/reactapp/views/ngiab/containers.js b/reactapp/views/ngiab/containers.js index 9603b36..5072afc 100644 --- a/reactapp/views/ngiab/containers.js +++ b/reactapp/views/ngiab/containers.js @@ -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; `;