Skip to content

Commit

Permalink
fix index event breakdown tab
Browse files Browse the repository at this point in the history
  • Loading branch information
azimov committed Sep 28, 2023
1 parent c0bad46 commit e762334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion R/cohort-diagnostics-main-ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

cdUiControls <- function(ns) {
panels <- shiny::tagList(
shiny::textOutput(outputId = ns("tabSelected")),
shiny::conditionalPanel(
condition = "
input.tabs == 'databaseInformation'",
Expand Down
6 changes: 2 additions & 4 deletions R/cohort-diagnostics-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ cohortDiagnosticsServer <- function(id,
selection["Orphan Concepts"] <- "orphanConcepts"

if ("indexEventBreakdown" %in% dataSource$enabledReports)
selection["Index Event Breakdown"] <- "indexEventBreakdown"
selection["Index Event Breakdown"] <- "indexEvents"

shiny::updateSelectInput(
inputId = "tabs",
Expand Down Expand Up @@ -626,8 +626,6 @@ cohortDiagnosticsServer <- function(id,
return(input$targetCohort)
})

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

if ("cohort" %in% enabledReports) {
cohortDefinitionsModule(id = "cohortDefinitions",
dataSource = dataSource,
Expand Down Expand Up @@ -666,7 +664,7 @@ cohortDiagnosticsServer <- function(id,
}

if ("indexEventBreakdown" %in% enabledReports) {
indexEventBreakdownModule("indexEvents",
indexEventBreakdownModule(id = "indexEvents",
dataSource = dataSource,
selectedCohort = selectedCohort,
targetCohortId = targetCohortId,
Expand Down

0 comments on commit e762334

Please sign in to comment.