diff --git a/R/methods.R b/R/methods.R index fb49fd0..1f6f143 100644 --- a/R/methods.R +++ b/R/methods.R @@ -79,9 +79,7 @@ methods_server <- function(id, analysis) { # Observe each method's enable button and synchronise the slider state. lapply(methods, function(method) { observeEvent(input[[method$id]], { - shinyjs::toggleState( - session$ns(sprintf("%s_weight", method$id)) - ) + shinyjs::toggleState(sprintf("%s_weight", method$id)) }, ignoreInit = TRUE) })