Skip to content

Commit

Permalink
a_subset bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sahas56 committed Sep 23, 2024
1 parent 49b7179 commit 84cf453
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions R/mod_generic_filters.R
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,19 @@ mod_generic_filters_server <-

observe({
req(domain())
req(repName() %in% c("eDISH_plot"))
if (repName() == "eDISH_plot") {
text <- "PARAMCD %in% c('ALT', 'AST', 'BILI')"
} else {
text <- "USUBJID != ''"
}
updateTextInput(
session,
"a_subset",
"Analysis Subset",
"PARAMCD %in% c('ALT', 'AST', 'BILI')"
text
)
})
}) %>%
bindEvent(repName())

# observer to control showing/hiding inputs based on report selection
observe({
Expand Down
1 change: 1 addition & 0 deletions R/mod_goutput.R
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ mod_goutput_server <- function(id, sourcedata, repName, filters, process_btn) {

observe({
req(filters()$ae_pre)
req(tolower(repName()) %in% c("edish_plot"))

series_opts <- plot_aes_opts(
filters()$ae_pre,
Expand Down

0 comments on commit 84cf453

Please sign in to comment.