Skip to content

Commit

Permalink
Merge pull request #99 from dfe-analytical-services/52-page-5-add-cus…
Browse files Browse the repository at this point in the history
…tom-message-when-no-rows-are-found-in-the-table

custom message when table empty
  • Loading branch information
johalastrahol authored Feb 7, 2025
2 parents 6293484 + 35796a7 commit 313b65d
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 928 deletions.
5 changes: 5 additions & 0 deletions R/dashboard_modules/05-national_provider_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ nps_server <- function(id) {

# Table ===================================================================
output$nps_table <- renderReactable({
# Put in message where there are none of the measure
validate(need(
nrow(nps_reactive_table()) > 0,
paste0("No results for this provider in this year.")
))
dfe_reactable(nps_reactive_table())
})

Expand Down
Loading

0 comments on commit 313b65d

Please sign in to comment.