Fix details table data selection

This commit is contained in:
Elias Projahn 2022-06-14 14:04:39 +02:00
parent 2e3521cbd9
commit e290aba9ab

View file

@ -105,10 +105,10 @@ server <- function(input, output, session) {
}) })
output$selected_genes <- DT::renderDataTable({ output$selected_genes <- DT::renderDataTable({
data <- if (length(selected_genes()) > 0) { data <- if (nrow(selected_genes()) > 0) {
ranked_data()
} else {
selected_genes() selected_genes()
} else {
ranked_data()
} }
genes_table(data) genes_table(data)