Skip to content

Commit

Permalink
fix: use inherits instead of class
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepanshKhurana committed Jun 12, 2024
1 parent ec075a9 commit 2398cc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/main.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ server <- function(id) {
)
} else {

if (class(app_list()) != "data.frame") {
if (!inherits(app_list(), "data.frame")) {
empty_state <- renderUI({
generate_empty_state_ui(
text = "Oops! Can't read apps from Posit Connect.",
Expand Down
2 changes: 1 addition & 1 deletion app/view/mod_app_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ server <- function(id, app_list, state) {

output$app_table <- renderReactable({

if (length(app_list) > 0 && class(app_list) == "data.frame") {
if (length(app_list) > 0 && inherits(app_list, "data.frame")) {
processed_apps <- app_list %>%
select(
guid,
Expand Down

0 comments on commit 2398cc4

Please sign in to comment.