codeforboston / codeforboston/maple

Save Attachment error

Open
#1,564 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
56
Forks
175
Avg merge
2d 5h
Merged PRs (30d)
13

Description

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
4. 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
5. hit next
6. get error

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

**Actual Results + Screenshots**
![image](https://github.com/codeforboston/maple/assets/73559781/e8f04985-ab0d-4ff3-9395-0eca30caa7ae)

![image](https://github.com/codeforboston/maple/assets/73559781/6d00ed49-74bc-4443-b7d7-aa96148b918a)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.