Skip to content

Commit

Permalink
LANTERN-587: Fixing app crash due to profiles tab
Browse files Browse the repository at this point in the history
  • Loading branch information
archita-ekkirala committed Jul 29, 2024
1 parent 2a5af62 commit 98318cc
Show file tree
Hide file tree
Showing 2 changed files with 1,334 additions and 1,310 deletions.
29 changes: 2 additions & 27 deletions shinydashboard/lantern/modules/profilemodule.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ selected_fhir_endpoint_profiles <- reactive({
)
} else {
tagList(
reactable::reactableOutput(ns("no_filter_profile_table"))
DT::dataTableOutput("no_filter_profile_table")
)
}
}
Expand Down Expand Up @@ -90,29 +90,4 @@ selected_fhir_endpoint_profiles <- reactive({

)
})

output$no_filter_profile_table <- reactable::renderReactable({
reactable(
selected_fhir_endpoint_profiles(),
defaultColDef = colDef(
align = "center"
),
columns = list(
url = colDef(name = "Endpoint", minWidth = 300, sortable = TRUE, align = "left", html = TRUE),
profileurl = colDef(name = "Profile URL", minWidth = 300, align = "left", sortable = FALSE, aggregate = "count",
format = list(aggregated = colFormat(prefix = "Count: "))),
profilename = colDef(name = "Profile Name", minWidth = 200, sortable = FALSE),
resource = colDef(name = "Resource", sortable = FALSE),
fhir_version = colDef(name = "FHIR Version", sortable = FALSE, aggregate = "unique"),
vendor_name = colDef(name = "Certified API Developer Name", minWidth = 110, sortable = FALSE)
),
groupBy = "url",
striped = TRUE,
searchable = TRUE,
showSortIcon = TRUE,
highlight = TRUE,
defaultPageSize = 10

)
})
}
}
Loading

0 comments on commit 98318cc

Please sign in to comment.