Skip to content

Commit d73fab7

Browse files
committed
fix app erroring despite early feedback errors
1 parent 47545d2 commit d73fab7

3 files changed

Lines changed: 18 additions & 18 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: dv.papo
22
Title: Patient Profile
3-
Version: 2.0.6-900
3+
Version: 2.0.7-900
44
Date: 2024-08-13
55
Authors@R:
66
c(person("Boehringer-Ingelheim Pharma GmbH & Co.KG", role = c("cph", "fnd")),

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# dv.papo 2.0.7-900
2+
- Fix early error feedback conflict with app errors.
3+
14
# dv.papo 2.0.6-900
25
- Update to provide early error feedback if a sender_id is not available in list of modules.
36

R/mod_patient_profile.R

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -370,24 +370,21 @@ mod_patient_profile <- function(module_id = "",
370370
return(datasets[plot_dataset_names])
371371
})
372372

373-
# filter missing sender_ids so app error doesn't conflict with early error feedback.
374-
known_sender_ids <- sender_ids
375-
if (!is.null(sender_ids)) {
376-
known_sender_ids <- intersect(sender_ids, names(afmm[["module_names"]]))
373+
# should run if there are no early feedback errors.
374+
if (shiny::isolate(length(fb_err())) < 1) {
375+
dv.papo::mod_patient_profile_server(
376+
id = module_id,
377+
subject_level_dataset = subject_level_dataset,
378+
extra_datasets = extra_datasets,
379+
subjid_var = subjid_var,
380+
sender_ids = lapply(sender_ids, function(x) {
381+
shiny::reactive(afmm[["module_output"]]()[[x]])
382+
}),
383+
summary = summary,
384+
listings = listings,
385+
plots = plots
386+
)
377387
}
378-
379-
dv.papo::mod_patient_profile_server(
380-
id = module_id,
381-
subject_level_dataset = subject_level_dataset,
382-
extra_datasets = extra_datasets,
383-
subjid_var = subjid_var,
384-
sender_ids = lapply(known_sender_ids, function(x) {
385-
shiny::reactive(afmm[["module_output"]]()[[x]])
386-
}),
387-
summary = summary,
388-
listings = listings,
389-
plots = plots
390-
)
391388
},
392389

393390
# Module ID

0 commit comments

Comments
 (0)