diff --git a/R/draw.R b/R/draw.R index 4aac7d9..a5f1d27 100644 --- a/R/draw.R +++ b/R/draw.R @@ -97,7 +97,6 @@ addDrawToolbar <- function( edittoolbar = NULL, edithandlers = NULL, drag = TRUE) { - if (!is.null(targetGroup) && !is.null(targetLayerId)) { stop("To edit existing features either specify a targetGroup or a targetLayerId, but not both") } diff --git a/R/drawOptions.R b/R/drawOptions.R index 60914f0..30c4db0 100644 --- a/R/drawOptions.R +++ b/R/drawOptions.R @@ -402,7 +402,6 @@ edithandlersOptions <- function( remove = list( tooltipText = "Click on a feature to remove." )) { - leaflet::filterNULL(list( edit = list( tooltip = list( @@ -446,7 +445,6 @@ edittoolbarOptions <- function( remove = "Delete layers", removeDisabled = "No layers to delete" )) { - leaflet::filterNULL(list( actions = actions, buttons = buttons