From 5000351f8640b49858c29d110e04a2134258f561 Mon Sep 17 00:00:00 2001 From: go_gonzo Date: Mon, 4 Dec 2023 08:52:49 +0100 Subject: [PATCH] fix unnecessary conversion from teal_data_module to teal_data --- R/init.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/init.R b/R/init.R index 80ca7eb912..685f42e0d0 100644 --- a/R/init.R +++ b/R/init.R @@ -102,7 +102,7 @@ init <- function(data, footer = tags$p(), id = character(0)) { logger::log_trace("init initializing teal app with: data ({ class(data)[1] }).") - if (is.list(data)) { + if (is.list(data) && !inherits(data, "teal_data_module")) { checkmate::assert_list(data, names = "named") data <- do.call(teal.data::teal_data, data) }