Skip to content

Commit

Permalink
chore: remove unwanted condition
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Oct 16, 2024
1 parent c12a8c7 commit 215c0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/toggleable_slider.R
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ toggle_slider_server <- function(id, is_dichotomous_slider = TRUE, step_slider =
req(length(state_slider) > 0) # update will otherwise not work
state_low <- state_slider
state_high <- state_slider
if (!is.null(state_slider$value) && (length(state_slider$value) > 1)) {
if (length(state_slider$value) > 1) {
state_low$value <- state_low$value[[1]]
state_high$value <- state_high$value[[2]]
}
Expand Down

0 comments on commit 215c0fc

Please sign in to comment.