Skip to content

Commit e115f24

Browse files
committed
Use "all" instead of c("all", parent_dataname)
1 parent 478f9c9 commit e115f24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/tm_missing_data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ tm_missing_data <- function(label = "Missing data",
162162
ans <- module(
163163
label,
164164
server = srv_page_missing_data,
165-
datanames = union(datanames, parent_dataname),
165+
datanames = if (all(datanames != "all")) union(datanames, parent_dataname) else "all",
166166
server_args = list(
167167
parent_dataname = parent_dataname,
168168
plot_height = plot_height,

R/tm_variable_browser.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ tm_variable_browser <- function(label = "Variable Browser",
125125
label,
126126
server = srv_variable_browser,
127127
ui = ui_variable_browser,
128-
datanames = union(datanames, parent_dataname),
128+
datanames = if (all(datanames != "all")) union(datanames, parent_dataname) else "all",
129129
server_args = list(
130130
datanames = datanames,
131131
parent_dataname = parent_dataname,

0 commit comments

Comments
 (0)