monocle / recordexpungPDX

A project to automate the expungement of qualifying criminal records in Oregon. This project is done in conjunction with Qiu-Qiu Law.
https://recordsponge.com
MIT License
0 stars 0 forks source link

Properly address null possibility in buildAndSendDownloadPdfRequest() #5

Open monocle opened 1 year ago

monocle commented 1 year ago

https://github.com/monocle/recordexpungPDX/blob/482877a2ba861bdfdbf74295320401fc7cb2bede/src/frontend/src/redux/search/actions.ts#L78-L87

For line 87, a null guard was added to fix a TS warning about response.headers["content-disposition"] being potentially null https://github.com/monocle/recordexpungPDX/commit/482877a2ba861bdfdbf74295320401fc7cb2bede.

Need to determine what the proper handling is for this.