diff --git a/app/main.R b/app/main.R index 8578f3b..4adf1dd 100644 --- a/app/main.R +++ b/app/main.R @@ -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.", diff --git a/app/view/mod_app_table.R b/app/view/mod_app_table.R index fbf93bd..52c6e0c 100644 --- a/app/view/mod_app_table.R +++ b/app/view/mod_app_table.R @@ -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,