diff --git a/R/utils.R b/R/utils.R index 49f54a696..4261c3acb 100644 --- a/R/utils.R +++ b/R/utils.R @@ -106,6 +106,6 @@ NS <- function(namespace, id = NULL) { # nolint: object_name. #' #' @noRd moduleServer <- function(id, module, session = getDefaultReactiveDomain()) { # nolint: object_name. - id <- js_encode(id) + id <- sanitize_id(id) shiny::moduleServer(id, module, session) }