Fix wrong context argument to `apply`
The context argument should be the array, not null. I wrote a test that I'll include in the next PR.
This commit is contained in:
parent
9b5e0517b4
commit
e0af1aabec
|
|
@ -925,7 +925,7 @@ export function queueRecoverableErrors(errors: Array<mixed>) {
|
|||
workInProgressRootRecoverableErrors = errors;
|
||||
} else {
|
||||
workInProgressRootConcurrentErrors = workInProgressRootConcurrentErrors.push.apply(
|
||||
null,
|
||||
workInProgressRootConcurrentErrors,
|
||||
errors,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -925,7 +925,7 @@ export function queueRecoverableErrors(errors: Array<mixed>) {
|
|||
workInProgressRootRecoverableErrors = errors;
|
||||
} else {
|
||||
workInProgressRootConcurrentErrors = workInProgressRootConcurrentErrors.push.apply(
|
||||
null,
|
||||
workInProgressRootConcurrentErrors,
|
||||
errors,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue