Skip to content

Commit

Permalink
Check count > 0 (fixes #384)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmelliott committed Dec 30, 2024
1 parent ed865d5 commit bce5c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panels/B5_DatasetExamples/2_data.set.examples-server.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ pkgname <- reactive({
})

observe({
if (!is.null(input$change_set)) {
if (!is.null(input$change_set) && input$change_set > 0) {
isolate({
if (!is.null(input[[input$data_select]]) && input$change_set > 0) {
new.data <- NULL
Expand Down Expand Up @@ -246,7 +246,7 @@ observe({
plot.par$design <- NULL
design_params$design <- NULL
}

updateTabsetPanel(session, "selector", "visualize")
})
}
Expand Down

0 comments on commit bce5c93

Please sign in to comment.