Closed grayey closed 2 years ago
@taylordowns2000 can you check this out this PR? Pls merge if it looks good so that @daissatou2 can keep testing.
And @grayey I chatted with Taylor... can you start assigning him to any pull requests? He'll be the one reviewing and providing feedback
@grayey after making the changes, pls merge the PR to master and let @daissatou2 know when done so she can re-test. Thanks!
@taylordowns2000 I've tried it and setting the default like this _const { servicessection = null } = state.data[0]; in this case doesn't fix it because state.data[0]
is undefined
. We are trying to destructure undefined
. It'd work in a case where there is an object in the first place, but services_section
is missing as a property. For instance, const { services_section = null } = {} OR { x, y, etc }
.
@aleksa-krolls
@elias-ba please review.
This feature fixes the
destructure
error when state.data[0] is undefined.