diff --git a/R/modules.R b/R/modules.R index d837d07..7fc1f4a 100644 --- a/R/modules.R +++ b/R/modules.R @@ -195,7 +195,7 @@ editMod <- function( # leaflet.pm returns only a single feature while leaflet.extras returns feature collection # convert leaflet.pm so logic will be the same - if(editor == "leafpm") { + if(editor[1] == "leafpm") { deleted <- list( type = "FeatureCollection", features = list(deleted)