mitodl / micromasters

Portal for learners and course teams to access MITx Micromasters® programs
https://mm.mit.edu
BSD 3-Clause "New" or "Revised" License
28 stars 16 forks source link

TypeError: Cannot read property 'contentBlocks' of null #4364

Open sentry-io[bot] opened 4 years ago

sentry-io[bot] commented 4 years ago

Sentry Issue: MICROMASTERS-2HT

TypeError: Cannot read property 'contentBlocks' of null
  at f (./static/js/components/email/EmailCompositionDialog.js:26:37)
  at componentWillReceiveProps (./static/js/components/email/EmailCompositionDialog.js:88:22)
...
(37 additional frame(s) were not displayed)
sentry-io[bot] commented 4 years ago

Sentry issue: MICROMASTERS-2HE

alicewriteswrongs commented 4 years ago

just poked at this a little bit, it looks like this has to do with the draftJS convertFromHTML function being called with "" as an argument:

draftjs

not sure that's exactly what's going on, cause it's saying 'can't read property contentBlocks of null', I can't seem to get that function to return null, but :woman_shrugging:

maybe we can silence this by adding a null check?

sentry-io[bot] commented 4 years ago

this sentry issue is the same issue, but it won't let me merge them for some reason