-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nikolas Burkoff
committed
Jan 6, 2023
1 parent
292d2cb
commit dd4a596
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -396,7 +396,7 @@ srv_g_bivariate <- function(id, | |
} | ||
rule_diff <- function(other) { | ||
function(value) { | ||
if (!is.null(input[[other]])) { | ||
if (other %in% names(selector_list()) && !is.null(selector_list()[[other]]()$select)) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
gogonzo
Contributor
|
||
othervalue <- selector_list()[[other]]()$select | ||
if (identical(value, othervalue)) | ||
"Row and column facetting variables must be different." | ||
|
This comes up in bivariate, outliers, scatterplot, and response.
Isn't
other %in% names(selector_list())
redundant in these cases? Indexingselector_list()
with a non-existent name returns NULL. I tested all modules without this clause and double checked bivariate just now, seems to work fine.