Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
waterdataui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Water Mission Area
Internet of Water
waterdataui
Commits
940e0576
Commit
940e0576
authored
3 years ago
by
Bucknell, Mary S.
Browse files
Options
Downloads
Patches
Plain Diff
Added check for empty IV period of record before determining if flood stages should be fetched.
parent
5d203e49
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!43
Wdfn 634
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assets/src/scripts/monitoring-location/components/hydrograph/index.js
+1
-1
1 addition, 1 deletion
...cripts/monitoring-location/components/hydrograph/index.js
with
1 addition
and
1 deletion
assets/src/scripts/monitoring-location/components/hydrograph/index.js
+
1
−
1
View file @
940e0576
...
...
@@ -103,7 +103,7 @@ export const attachToNode = function(store,
let
fetchDataPromises
=
[
fetchHydrographDataPromise
];
// Fetch waterwatch flood levels
if
(
config
.
GAGE_HEIGHT_PARAMETER_CODE
in
config
.
ivPeriodOfRecord
)
{
if
(
config
.
ivPeriodOfRecord
&&
config
.
GAGE_HEIGHT_PARAMETER_CODE
in
config
.
ivPeriodOfRecord
)
{
const
fetchFloodLevelsPromise
=
store
.
dispatch
(
floodDataActions
.
retrieveWaterwatchData
(
siteno
));
// If flood levels are to be shown then wait to render the hydrograph until those have been fetched.
if
(
parameterCode
===
config
.
GAGE_HEIGHT_PARAMETER_CODE
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment