Skip to content

Commit

Permalink
prevent large sample list error
Browse files Browse the repository at this point in the history
  • Loading branch information
lassedochreden committed Jan 4, 2024
1 parent d5b3d09 commit bf7f388
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/utils_cytoviewer.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@
# return updated img_id
updated_sample <- img_IDs[updated_index]

updateSelectInput(session, inputId = "sample",
updateSelectizeInput(session, inputId = "sample",
choices = unique(img_IDs),
server = TRUE,
selected = updated_sample)

}, ignoreInit = TRUE)
Expand All @@ -118,8 +119,9 @@
# return updated img_id
updated_sample <- img_IDs[updated_index]

updateSelectInput(session, inputId = "sample",
updateSelectizeInput(session, inputId = "sample",
choices = unique(img_IDs),
server = TRUE,
selected = updated_sample)

}, ignoreInit = TRUE)
Expand All @@ -133,6 +135,7 @@
# Store image IDs
updateSelectizeInput(session, inputId = "sample",
choices = unique(img_IDs),
server = TRUE,
selected = unique(img_IDs)[1])

# Store marker names
Expand Down

0 comments on commit bf7f388

Please sign in to comment.