Skip to content

Commit 7b32e7e

Browse files
committed
fix silly mistake from 3cbccfc
1 parent ff27ca5 commit 7b32e7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/ggplotly.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ verifyUnit <- function(u) {
11571157
# Use public API for getting the unit's type, if available
11581158
# https://github.com/ropensci/plotly/pull/1646#issue-331268260
11591159
getUnitType <- function(u) {
1160-
tryNULL(get("unitType", envir = asNamespace("grid"))) %||%
1160+
tryNULL(get("unitType", envir = asNamespace("grid"))(u)) %||%
11611161
attr(u, "unit")
11621162
}
11631163

0 commit comments

Comments
 (0)