Skip to content

Commit f9f5bf9

Browse files
author
Dony Unardi
committed
only join when there's a record
1 parent d660198 commit f9f5bf9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/utils.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,9 @@ children <- function(x, dataset_name = character(0)) {
409409
join_cols <- teal.data::join_keys(plotly_selected_q())[childname, plot_dataname]
410410
substitute(
411411
expr = {
412-
childname <- dplyr::right_join(childname, swimlane_selected, by = by)
412+
if (nrow(childname) > 0) {
413+
childname <- dplyr::right_join(childname, swimlane_selected, by = by)
414+
}
413415
},
414416
list(
415417
childname = str2lang(childname),

0 commit comments

Comments
 (0)