Skip to content

Commit

Permalink
fix for time distributions module not showing in CD
Browse files Browse the repository at this point in the history
  • Loading branch information
azimov committed Sep 28, 2023
1 parent 54ee8b7 commit c0bad46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/cohort-diagnostics-main-ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

cdUiControls <- function(ns) {
panels <- shiny::tagList(
shiny::textOutput(outputId = ns("tabSelected")),
shiny::conditionalPanel(
condition = "
input.tabs == 'databaseInformation'",
Expand Down Expand Up @@ -90,7 +91,7 @@ cdUiControls <- function(ns) {
condition = "input.tabs == 'cohortCounts' |
input.tabs == 'cohortOverlap' |
input.tabs == 'incidenceRates' |
input.tabs == 'timeDistributions'",
input.tabs == 'timeDistribution'",
ns = ns,
shinyWidgets::pickerInput(
inputId = ns("cohorts"),
Expand Down Expand Up @@ -230,8 +231,8 @@ cohortDiagnosticsView <- function(id = "DiagnosticsExplorer") {
),
shiny::conditionalPanel(
ns = ns,
condition = "input.tabs == 'timeDistributions'",
timeDistributionsView(ns("timeDistributions"))
condition = "input.tabs == 'timeDistribution'",
timeDistributionsView(id = ns("timeDistributions"))
),
shiny::conditionalPanel(
ns = ns,
Expand Down
2 changes: 2 additions & 0 deletions R/cohort-diagnostics-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,8 @@ cohortDiagnosticsServer <- function(id,
return(input$targetCohort)
})

output$tabSelected <- shiny::renderText(input$tabs)

if ("cohort" %in% enabledReports) {
cohortDefinitionsModule(id = "cohortDefinitions",
dataSource = dataSource,
Expand Down

0 comments on commit c0bad46

Please sign in to comment.