sakinkirti / monkeypox-dashboard

Monkeypox dashboard intended for use by public health experts in the US. Created by Saketh Dendi, Felix Huang, and Sakin Kirti for CSDS393 @cwru
1 stars 0 forks source link

Occasional error in rendering homepage in which CasesTable is undefined #1

Closed felixhuang12 closed 1 year ago

felixhuang12 commented 1 year ago

TypeError is thrown when stateFlags is undefined, which causes homepage to not be rendered.

CasesTable.js:52 Uncaught TypeError: Cannot read properties of undefined (reading 'flag') at CasesTable.js:52:1 at Array.map () at CasesTable (CasesTable.js:50:1) at renderWithHooks (react-dom.development.js:16305:1) at updateFunctionComponent (react-dom.development.js:19588:1) at beginWork (react-dom.development.js:21601:1) at HTMLUnknownElement.callCallback (react-dom.development.js:4164:1) at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:1) at invokeGuardedCallback (react-dom.development.js:4277:1) at beginWork$1 (react-dom.development.js:27451:1)