Skip to content

Commit

Permalink
Revert "No longer crashes when selecting variable before clicking "Lo…
Browse files Browse the repository at this point in the history
…ad Graphs""

This reverts commit cf4de20.
  • Loading branch information
ciara-donegan committed Aug 22, 2024
1 parent cf4de20 commit 193fc44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inst/shinyApp/components/modules/mod_run.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ run_server <- function(id, r6) {
runs[[i]] <- fetchvars(r6$core[[i]], r6$time()[1]:r6$time()[2], vars = list(r6$selected_var())) %>%
mutate(Scenario = names(which(scenarios == input$ssp_path[i], arr.ind = FALSE)))
}
#browser()

r6$output <- bind_rows(runs)
print("Done")
Expand All @@ -147,7 +146,7 @@ run_server <- function(id, r6) {

observe({
r6$selected_var <- reactive({input$variable})
runs <- list(r6$output)
runs <- list()

for(i in 1:length(input$ssp_path)) {
runs[[i]] <- fetchvars(r6$core[[i]], r6$time()[1]:r6$time()[2], vars = list(r6$selected_var())) %>%
Expand Down

0 comments on commit 193fc44

Please sign in to comment.