Skip to content

Commit

Permalink
Fallback to archive
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Jan 31, 2024
1 parent 39e3d35 commit 6f97fc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,8 @@ rxUiDecompress <- function(ui) {
rxUiCompress <- function(ui) {
if (!inherits(ui, "rxUi")) return(ui)
if (is.environment(ui)) {
.ret <- qs::qserialize(ui, preset="fast")
.ret <- try(qs::qserialize(ui, preset="fast"), silent=TRUE)
if (inherits(.ret, "try-error")) .ret <- qs::qserialize(ui, preset="archive")

Check warning on line 449 in R/ui.R

View check run for this annotation

Codecov / codecov/patch

R/ui.R#L449

Added line #L449 was not covered by tests
class(.ret) <- c("rxUi", "raw")
return(.ret)
}
Expand Down

0 comments on commit 6f97fc5

Please sign in to comment.