Skip to content

Commit 3a36edc

Browse files
committed
update sender_id error fix
1 parent 3ab8854 commit 3a36edc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

R/mod_patient_profile.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,18 @@ 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"]]))
377+
}
378+
373379
dv.papo::mod_patient_profile_server(
374380
id = module_id,
375381
subject_level_dataset = subject_level_dataset,
376382
extra_datasets = extra_datasets,
377383
subjid_var = subjid_var,
378-
sender_ids = lapply(sender_ids, function(x) {
384+
sender_ids = lapply(known_sender_ids, function(x) {
379385
shiny::reactive(afmm[["module_output"]]()[[x]])
380386
}),
381387
summary = summary,

0 commit comments

Comments
 (0)