Skip to content

Commit ada51df

Browse files
pass plot into alt lambda to match S7 method
1 parent a27af21 commit ada51df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/labels.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ setup_plot_labels <- function(plot, layers, data) {
105105
if (!is.function(label)) {
106106
return(label)
107107
}
108-
label(labels[[nm]] %||% "")
108+
label(plot %||% "")
109109
})
110110

111111
dict <- plot_labels$dictionary

0 commit comments

Comments
 (0)