Skip to content

Commit 0fdb965

Browse files
committed
fix: typo in check_active_session()
1 parent de01137 commit 0fdb965

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

R/utils-shiny.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
check_active_session <- function(session = shiny::getDefaultReactiveDomain()) {
2-
rlang::abort(
3-
"An active Shiny session is required.",
4-
call = rlang::caller_env()
5-
)
2+
if (is.null(session)) {
3+
rlang::abort(
4+
"An active Shiny session is required.",
5+
call = rlang::caller_env()
6+
)
7+
}
68
}
79

810
resolve_id <- function(id, session = shiny::getDefaultReactiveDomain()) {

0 commit comments

Comments
 (0)