From 215c0fc4cff079e60f12e278c533c4e69fb2c123 Mon Sep 17 00:00:00 2001 From: vedhav Date: Wed, 16 Oct 2024 16:49:06 +0530 Subject: [PATCH] chore: remove unwanted condition --- R/toggleable_slider.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/toggleable_slider.R b/R/toggleable_slider.R index 9ffd01e8..ea39b1d9 100644 --- a/R/toggleable_slider.R +++ b/R/toggleable_slider.R @@ -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]] }