fpdcc / ccfp-asset-dashboard

CCFP Asset Dashboard
0 stars 1 forks source link

remove deletes that were causing unpredictable scope issues #210

Closed smcalilly closed 1 year ago

smcalilly commented 1 year ago

Overview

Demo

cip-fix

Notes

The original code deleted unneeded keys from the project object that makes up a row in the data export. This created an unpredictable and befuddling scope issue, where the keys were deleted from the project data in state. Javascript...

To fix this, instead of the delete + spread operator combination, I wrote out the key/value pairs for the row data.

Testing Instructions