Skip to content

Commit

Permalink
fix erro for passing NULL to if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Jan 7, 2025
1 parent c1abbe3 commit d78a441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/align-hclust.R
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ AlignHclust <- ggproto("AlignHclust", Align,
# merge children tree ------------------------------
if (nlevels(panel) == 1L) {
statistics <- .subset2(statistics, 1L)
} else if (self$merge_dendro) {
} else if (isTRUE(self$merge_dendro)) {
# we have a function named merge_dendrogram(), so we use
# `merge_dendro` as the argument name
# `merge_dendrogram` will follow the order of the parent
Expand Down

0 comments on commit d78a441

Please sign in to comment.