Initialize reducer with an empty array #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If the
sourcesarray is empty for some reason (unknown but it seems to happen, as we've seen this error logged), avoid a “reduce of empty array with no initial value” error being thrown by initialising the reducer with an empty array.Attached patch should fix the underlying issue that caused that code to run when the linter was no longer actually configured in the state.
Pull request closed