diff --git a/R/tm_g_lineplot.R b/R/tm_g_lineplot.R index de4007b4b..1bbdf394a 100644 --- a/R/tm_g_lineplot.R +++ b/R/tm_g_lineplot.R @@ -314,7 +314,7 @@ tm_g_lineplot <- function(label, } # Now handle 'parentname' calculation based on 'group_var' - parentname <- if (is.null(parentname) { + parentname <- if (is.null(parentname)) { ifelse( inherits(group_var, "data_extract_spec"), teal.transform::datanames_input(group_var),