Skip to content

Commit 66dc1af

Browse files
committed
bug fix for config()
1 parent 8ae278b commit 66dc1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/layout.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ config <- function(p, ...) {
7979
if (!removeCollab) list(sharingButton()),
8080
attrs[["modeBarButtonsToAdd"]]
8181
)
82-
attrs <- attrs[grepl("modeBarButtonsTo", names(attrs))]
82+
attrs <- attrs[!grepl("modeBarButtonsTo", names(attrs))]
8383
p$x$config <- modify_list(p$x$config, attrs)
8484
p
8585
}

0 commit comments

Comments
 (0)