Skip to content

Commit 451abeb

Browse files
committed
prevent error in gof comparison when no models are saved
1 parent 3df4280 commit 451abeb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

server.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2760,7 +2760,7 @@ output$gofplotspace <- renderUI({
27602760
})
27612761

27622762
output$gofplotcomp <- renderPlot({
2763-
if(state$gof == 0){
2763+
if(state$gof == 0 | values$modeltotal == 0){
27642764
return()
27652765
}
27662766
input$gofButton

ui.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ actionLink('fitright', icon=icon('arrow-right', class='fa-2x'), label=NULL)
972972
uiOutput('gofplotspace'),
973973
downloadButton('gofplotdownload', label = 'Download Plots')))
974974
),
975-
tabPanel("Compare Models",align="center",
975+
tabPanel("Compare Saved Models",align="center",
976976
uiOutput('gofplotcompspace'),
977977
fluidRow(align="left",
978978
downloadButton('gofplotcompdownload',

0 commit comments

Comments
 (0)