Skip to content

Commit

Permalink
Fix updating of n slider
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavdelius committed Apr 15, 2024
1 parent 1c3feee commit fb7bdbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/predationControl.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ predationControl <- function(input, output, session, params, params_old,
updateSliderInput(session, "h",
min = signif(input$h / 2, 2),
max = signif(input$h * 1.5, 2))
updateSliderInput(session, "n",
min = signif(input$n - 0.1, 2),
max = signif(input$n + 0.1, 2))
updateSliderInput(session, "q",
min = signif(input$q - 0.1, 2),
max = signif(input$q + 0.1, 2))
Expand Down Expand Up @@ -90,6 +87,9 @@ predationControl <- function(input, output, session, params, params_old,
value = h,
min = signif(h / 2, 2),
max = signif(h * 1.5, 2))
updateSliderInput(session, "n",
min = signif(input$n - 0.1, 2),
max = signif(input$n + 0.1, 2))
p <- setMaxIntakeRate(p)
tuneParams_update_species(sp, p, params, params_old)
},
Expand Down

0 comments on commit fb7bdbc

Please sign in to comment.