Skip to content

Commit

Permalink
fix(update input): allow specifying only selected argument (#199)
Browse files Browse the repository at this point in the history
* For some reason the `selected` argument could only
be passed when the `values` argument was also passed
  • Loading branch information
nteetor committed Oct 31, 2024
1 parent 1e9df20 commit 2b54a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils-assertions.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ assert_selected <- function(len) {

val <- env_get(caller_env(), "values")

if (!(var %in% val)) {
if (!is.null(val) && !(var %in% val)) {
abort_assertion(
c("argument `selected` must be one of",
arg_in_values,
Expand Down

0 comments on commit 2b54a24

Please sign in to comment.