From f0c1cc6e0538c99f54a596ec8e65bee90f84bbf1 Mon Sep 17 00:00:00 2001 From: go_gonzo Date: Fri, 3 Nov 2023 09:59:48 +0100 Subject: [PATCH] allow no server_args --- R/data-transform_module.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/data-transform_module.R b/R/data-transform_module.R index 9519a2526a..3e948492f1 100644 --- a/R/data-transform_module.R +++ b/R/data-transform_module.R @@ -13,7 +13,7 @@ delayed_data <- function(ui, server, ...) { checkmate::assert_function(ui, args = "id") server_args <- list(...) - if (is.null(names(server_args))) { + if (length(server_args) && is.null(names(server_args))) { stop("All arguments passed to delayed_data() should be named") }