Skip to content

Commit

Permalink
fix teal::init server usage of landing popup thanks to @chlebowa ideas
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Oct 17, 2023
1 parent 4f01d31 commit 5d18417
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/init.R
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ init <- function(data,
res <- list(
ui = ui_teal_with_splash(id = id, data = data, title = title, header = header, footer = footer),
server = function(input, output, session) {
landing_popup
if (length(landing_popup) > 0L) {
do.call(landing_popup[[1]]$server, c(list(id = "landing_module_shiny_id"), landing_popup[[1]]$server_args))
}
# copy object so that load won't be shared between the session
data <- data$copy(deep = TRUE)
filter <- deep_copy_filter(filter)
Expand Down

0 comments on commit 5d18417

Please sign in to comment.