fix: Isolate `selected_station()` to prevent unwanted reactive re-evaluation.
Browse files
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)
|