alexdum commited on
Commit
649596b
·
1 Parent(s): 753bf84

fix: Isolate `selected_station()` to prevent unwanted reactive re-evaluation.

Browse files
Files changed (1) hide show
  1. server.R +1 -1
server.R CHANGED
@@ -529,7 +529,7 @@ server <- function(input, output, session) {
529
  }
530
 
531
  # Re-apply highlight if a station is selected
532
- st <- selected_station()
533
  if (!is.null(st)) {
534
  # Re-gen label for consistency
535
  period <- get_resolution_period(st, resolution)
 
529
  }
530
 
531
  # Re-apply highlight if a station is selected
532
+ st <- isolate(selected_station())
533
  if (!is.null(st)) {
534
  # Re-gen label for consistency
535
  period <- get_resolution_period(st, resolution)