Skip to content

Commit bad84e3

Browse files
committed
1 parent 6bbfe29 commit bad84e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

R/step2_helper_data.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ getdts = function(aes, unm, p, q, o, dt, shpvars, layer, group, mfun, args, plot
155155

156156
if (!q$drop.units) {
157157

158-
imp = structure(list(value.null, -1L, FALSE), names = c(unm, {if (bypass_ord) NULL else nm__ord}, "sel__"))
158+
if (bypass_ord) {
159+
imp = structure(list(value.null, FALSE), names = c(unm, "sel__"))
160+
} else {
161+
imp = structure(list(value.null, -1L, FALSE), names = c(unm, nm__ord, "sel__"))
162+
}
159163
levs = lapply(get_num_facets(grp_bv), seq.int, from = 1)
160164
names(levs) = grp_bv
161165
dtl = completeDT2(dtl, cols = c(list("tmapID__" = unique(dtl$tmapID__)), levs), defs = imp)

0 commit comments

Comments
 (0)