codeforboston / maple

MAPLE makes it easy for anyone to view and submit testimony to the Massachusetts Legislature about the bills that will shape our future.

Home Page:https://mapletestimony.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Save Attachment error

mertbagt opened this issue · comments

Unhandled Runtime Error
TypeError: Cannot destructure property 'basename' of 'react__WEBPACK_IMPORTED_MODULE_0__.useContext(...)' as it is null.

To Reproduce

  1. goto Submit or Edit Testimony
  2. go to section 2 Write Your Testimony
  3. attach a pdf
    a. open Google docs or other word processor
    b. type something minimal (i.e. test attachment)
    c. save as pdf
    d. use MAPLE's interface to attach the pdf
  4. hit next
  5. get error

Expected behavior
to move to the next screen without an error and the website failing to display

Actual Results + Screenshots
image

image