Skip to content

Commit

Permalink
add levels of factor as choices for edit_input_form
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixmil committed Nov 16, 2023
1 parent 1155748 commit d3e22bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/edit-data-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ edit_input_form <- function(default = list(),
virtualSelectInput(
inputId = ns(variable_id),
label = label,
choices = unique(variable),
choices = unique(c(as.character(variable), levels(variable))),
selected = default[[variable_id]] %||% "",
width = "100%",
allowNewOption = TRUE,
Expand Down

0 comments on commit d3e22bd

Please sign in to comment.