Skip to content

Commit

Permalink
fix unnecessary conversion from teal_data_module to teal_data
Browse files Browse the repository at this point in the history
  • Loading branch information
gogonzo committed Dec 4, 2023
1 parent f424cd4 commit 5000351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/init.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 5000351

Please sign in to comment.