Skip to content

Commit

Permalink
change condition for initiating reporte previewer module
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Chlebowski committed Mar 21, 2024
1 parent 92391a5 commit a83b42c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/module_nested_tabs.R
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ srv_nested_tabs.teal_module <- function(id, datasets, modules, is_module_specifi
# When restoring bookmark, all modules must be initialized on app start.
# Delayed module initiation (below) precludes restoring state b/c inputs do not exist when restoring occurs.
call_module()
} else if (id == "report_previewer") {
} else if (inherits(modules, "teal_module_previewer")) {
# Report previewer must be initiated on app start for report cards to be included in bookmarks.
# When previewer is delayed, cards are bookmarked only if previewer has been initiated (visited).
call_module()
Expand Down

0 comments on commit a83b42c

Please sign in to comment.