Skip to content

Commit

Permalink
fix: apply facet rule only when supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Nov 10, 2023
1 parent eef36c1 commit 944d4be
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions R/tm_g_response.R
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,12 @@ srv_g_response <- function(id,

rule_diff <- function(other) {
function(value) {
othervalue <- selector_list()[[other]]()[["select"]]
if (!is.null(othervalue)) {
if (identical(value, othervalue)) {
"Row and column facetting variables must be different."
if (other %in% names(selector_list())) {
othervalue <- selector_list()[[other]]()[["select"]]
if (!is.null(othervalue)) {
if (identical(value, othervalue)) {
"Row and column facetting variables must be different."
}
}
}
}
Expand Down

0 comments on commit 944d4be

Please sign in to comment.