OasisLMF / OasisUI

User Interface for the Oasis platform.
BSD 3-Clause "New" or "Revised" License
16 stars 17 forks source link

App crash when no model settings defined #223

Closed sambles closed 2 years ago

sambles commented 4 years ago

Example Model_settings file

Download
{
  "model_settings": {},
  "lookup_settings": {
    "supported_perils": [
      {
        "id": "QEQ",
        "desc": "Single Peril: EarthQuake only"
      }
    ]
  }
}

The above causes a crash at the output configuration step

In Login User:  admin
Authenticated
.hideDivs step3 called
.hideDivs step1 called
.defaultCreateProg called
.reloadtbl_portfoliosData called
portfolio table refreshed
.hideDivs step2 called
.reloadAnaData step2 called
.reloadAnaData landingpage called
replacing icons
analyses table refreshed
Navigate to Landing Page
Navigate to Define Single Analysis
re-rendering portfolio table
input$dt_Portfolios_rows_selected is changed to: 1
updating portfolioID because selection in portfolio table changed to 15
updating result$portfolioID because submodulesList$step1_choosePortfolio$portfolioID() changed to: 15
updating input$portfolioID because result$portfolioID changed to: 15
.hideDivs step2 called
.reloadAnaData step2 called
replacing icons
analyses table refreshed
.hideDivs step1 called
.hideDivs step2 called
.hideDivs step3 called
.defaultstep3 called
.reloadAnaData step3 called
replacing icons
analyses table refreshed with 1 rows
showing Section 'Configure Output & Run' = '3'
input$dt_analyses_rows_selected is changed to: 
re-rendering analysis table
updating output parameters for Summary configuration and cleaning up UI
.clearOutputOptions called
replacing icons
input$dt_analyses_rows_selected is changed to: 1
analysisId changed to 15
.clearOutputOptions called
replacing icons
showing panelDefineOutputs
.gen_analysis_settings called
replacing icons
Warning: Error in <-: 'names' attribute [2] must be the same length as the vector [0]
  75: fetch_model_settings
  74: .gen_analysis_settings
  73: observeEventHandler
   2: runApp
   1: oasisui::runOasisui
nfarabullini commented 2 years ago

closed with PR #263