bcgov/shinyrems

error when calculating guideline

Closed this issue · 2 comments

Seems to occur for both manual and calculate from data options.

Plot disappears when this error occurs.

Warning: Error in : Aesthetics must be either length 1 or the same as the data (27): colour 186: <Anonymous>

*Using site 0200389 total selenium (guideline of 2 ug/L) to test.

Data set selected
Screen Shot 2022-01-26 at 8 42 00 AM

working plot with long term daily guideline
Screen Shot 2022-01-26 at 8 39 34 AM

long term selected and error message appears but plot doesn't disappear
Screen Shot 2022-01-26 at 8 41 35 AM

short term selected and error message appears but plot doesn't disappear
Screen Shot 2022-01-26 at 8 40 42 AM

The error messages that appear aren't very helpful, I assume they are appearing because there is no guideline of that type for that variable. It would be more helpful if an informative error message popped up but its not causing the plot to disappear and no warning/error is printed to the console.

@HeatherGranger if you could recreate the issue and then show me in a call I could better dig into what is causing it and figure out how to correct it.

Pull request #142 should have fixed this issue