Skip to content

Commit

Permalink
ensure reactive expression returns a data frame
Browse files Browse the repository at this point in the history
  • Loading branch information
avanlinden committed Aug 22, 2024
1 parent 19da793 commit 6590b94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ server <- function(input, output, session) {
# Get data model csv and re-format for dictionary app
# use reactive expression to get latest version of data model
dict_table <- reactive({
format_dict_table(data_model_url)
df <- format_dict_table(data_model_url)
as.data.frame(df) # Ensure the result is a data frame
})

## Create table to display
output$dictionary_table <- renderReactable({
reactable(
dict_table,
dict_table(),
groupBy = "Column",
searchable = TRUE,
sortable = TRUE,
Expand Down

0 comments on commit 6590b94

Please sign in to comment.