Skip to content

Commit 304d262

Browse files
committed
🐛 small fixes
1 parent f013622 commit 304d262

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

R/mod_tab_report.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ mod_tab_report_server <- function(id, rv) {
312312
shinyjs::hide(id = "repBox_dist_err")
313313
shinyjs::hide(id = "repBox_analyses")
314314
shinyjs::hide(id = "repBox_tables")
315+
shinyjs::hide(id = "repBox_meta")
315316

316317
observe({
317318
req(rv$active_tab == 'report')
@@ -1851,11 +1852,11 @@ mod_tab_report_server <- function(id, rv) {
18511852
if (rv$which_meta == "none") {
18521853
shinyjs::show(id = "section-highlight_dur")
18531854
shinyjs::show(id = "section-highlight_dti")
1854-
shinyjs::hide(id = "section-repBox_meta")
1855+
shinyjs::hide(id = "repBox_meta")
18551856
} else {
18561857
shinyjs::hide(id = "section-highlight_dur")
18571858
shinyjs::hide(id = "section-highlight_dti")
1858-
shinyjs::show(id = "section-repBox_meta")
1859+
shinyjs::show(id = "repBox_meta")
18591860
}
18601861

18611862
}) %>% bindEvent(input$build_report)

R/mod_viz.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -866,15 +866,15 @@ mod_viz_server <- function(id, rv) {
866866
reactable::colDef(
867867
minWidth = 90, name = "N (area)",
868868
style = format_num,
869-
format = reactable::colFormat(separators = TRUE,
870-
digits = 1)) },
869+
format = reactable::colFormat(
870+
separators = TRUE, locale = "en-US", digits = 1)) },
871871
N_speed = if ("N_speed" %in% names(out_sum)) {
872872
reactable::colDef(
873873
name = "N (speed)",
874874
minWidth = 90,
875875
style = format_num,
876-
format = reactable::colFormat(separators = TRUE,
877-
digits = 1)) }
876+
format = reactable::colFormat(
877+
separators = TRUE, locale = "en-US", digits = 1)) }
878878
))
879879

880880
}) # end of renderReactable

0 commit comments

Comments
 (0)